maybeWhen<TResult extends Object?> method
- @optionalTypeArgs
- TResult $default()?, {
- TResult arr()?,
- TResult any(
- String type,
- dynamic data
- required TResult orElse(),
inherited
Implementation
@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>(
TResult Function(@JsonKey(name: 'type') String type,
@JsonKey(name: 'data') String data)?
$default, {
TResult Function(@JsonKey(name: 'type') String type,
@JsonKey(name: 'data') List<String> data)?
arr,
TResult Function(@JsonKey(name: 'type') String type,
@JsonKey(name: 'data') dynamic data)?
any,
required TResult orElse(),
}) =>
throw _privateConstructorUsedError;