firstOrNull property

Future<T?> get firstOrNull

Implementation

Future<T?> get firstOrNull => isEmpty.then((value) => value ? null : first);