Files
flutter-go/test.dart
2019-07-04 18:28:30 +08:00

4 lines
103 B
Dart

List<int> a = [1,2,3,4];
main() {
print( a.firstWhere((int item) => item == 5 ,orElse: () => null));
}