1
0
Fork 0
mirror of https://gitlab.com/nkming2/nc-photos.git synced 2025-03-19 13:48:55 +01:00
nc-photos/lib/or_null.dart
2021-06-06 03:39:58 +08:00

8 lines
180 B
Dart

/// To hold optional arguments that themselves could be null
class OrNull<T> {
OrNull(this.obj);
static bool isNull(OrNull x) => x != null && x.obj == null;
final T obj;
}