maybeWhen<TResult extends Object?> method
TResult
maybeWhen<TResult extends Object?>({
- TResult success(
- T data
- TResult failure(
- String error
- required TResult orElse(),
inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(T data)? success,
TResult Function(String error)? failure,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;