maybeData property

Maybe<ResultType> maybeData

Getter that results in a Just if the Result is Success and Nothing othterwise

Implementation

Maybe<ResultType> get maybeData => handle(
      onSuccess: (data) => Just(data),
      onFailure: (_) => Nothing<ResultType>(),
    );