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