whenOrNull<TResult extends Object?> method
- @optionalTypeArgs
- TResult? $default()?, {
- TResult? arr()?,
- TResult? any(
- String type,
- dynamic data
inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
throw _privateConstructorUsedError;