lastOrNull property

Future<T?> get lastOrNull

Implementation

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