lengthOrNull property

int? get lengthOrNull

Returns the length of the list if it is success null otherwise

Implementation

int? get lengthOrNull =>
    match(onError: (l) => null, onSuccess: (r) => r.length);