whenOrNull<TResult extends Object?> method
- TResult? ok(
- Object? result
- TResult? fail(
- PandoraApiErrorCode code,
- String message
inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
throw _privateConstructorUsedError;