asListOrNullAsync property

FutureOr<List<T>?> get asListOrNullAsync

Implementation

FutureOr<List<T>?> get asListOrNullAsync =>
    then((itr) => itr is List<T> ? itr : itr?.toList());