📜  颤动随机选择图标 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:07.339000             🧑  作者: Mango

代码示例1
final List points = [0xe0b0, 0xe0b1, 0xe0b2, 0xe0b3, 0xe0b4];
  final Random r = Random();

  Icon randomIcon() =>
    Icon(IconData(r.nextInt(points.length), fontFamily: 'MaterialIcons'));