Answers for "flutter random pick icon"

0

flutter random pick icon

final List<int> points = <int>[0xe0b0, 0xe0b1, 0xe0b2, 0xe0b3, 0xe0b4];
  final Random r = Random();

  Icon randomIcon() =>
    Icon(IconData(r.nextInt(points.length), fontFamily: 'MaterialIcons'));
Posted by: Guest on November-16-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language