2021-04-28 21:22:33 +02:00
|
|
|
/// To hold optional arguments that themselves could be null
|
|
|
|
class OrNull<T> {
|
|
|
|
OrNull(this.obj);
|
|
|
|
|
2021-05-28 19:15:09 +02:00
|
|
|
static bool isNull(OrNull x) => x != null && x.obj == null;
|
|
|
|
|
2021-04-28 21:22:33 +02:00
|
|
|
final T obj;
|
|
|
|
}
|