maybeWhen<TResult extends Object?> method
- TResult ok(
- Object? result
- TResult fail(
- PandoraApiErrorCode code,
- String message
- required TResult orElse(),
inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
TResult Function(@JsonKey(name: 'result') Object? result)? ok,
TResult Function(
@JsonKey(name: 'code', fromJson: PandoraApiErrorCode.fromCode)
PandoraApiErrorCode code,
@JsonKey(name: 'message') String message)?
fail,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;