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