Random().nextInt()为啥找不到
nextBool() 如下图:
import ‘dart:math’; 这个库引入后说Random不是方法了
在大神的指导下好了,与这个库冲突了,我引入了这个import ‘dart:nativewrappers/_internal/vm/lib/math_patch.dart’;