whenOrNull<TResult extends Object?> method
- @optionalTypeArgs
- TResult document()?,
- TResult media()?,
- TResult web(
- String url
inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult Function(
@JsonKey(name: 'type') String documentType,
List<String> tags,
String id,
String lang,
String slug,
bool isBroken)?
document,
TResult Function(String? height, String? width, String? kind, String? name,
String? size, String? url)?
media,
TResult Function(String url)? web,
}) =>
throw _privateConstructorUsedError;