执行多次,相当于setInterval 这时,就需要用到Timer类,Timer类存在于dart:async内,所以我们需要先导入 import 'dart:async'; Timer执行一次:
確定! 回上一頁