maybeData property

Maybe<ResultType> maybeData

Getter that results in a Maybe that is Just if the RequestStatus is Succeeded and Nothing otherwise

Implementation

Maybe<ResultType> get maybeData => maybeWhen(
      orElse: () => Nothing<ResultType>(),
      succeeded: (data) => Just(data),
    );