when<TResult extends Object?> method
- @optionalTypeArgs
- required TResult imageFile(
- int index,
- String type,
- MessageContentImageFile? imageFile
- required TResult text(
- int index,
- String type,
- MessageDeltaContentText? text
- required TResult refusal(),
- required TResult imageUrl(
- int index,
- String type,
- MessageContentImageUrl? imageUrl
inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(
int index,
String type,
@JsonKey(name: 'image_file', includeIfNull: false)
MessageContentImageFile? imageFile)
imageFile,
required TResult Function(int index, String type,
@JsonKey(includeIfNull: false) MessageDeltaContentText? text)
text,
required TResult Function(int index, String type,
@JsonKey(includeIfNull: false) String? refusal)
refusal,
required TResult Function(
int index,
String type,
@JsonKey(name: 'image_url', includeIfNull: false)
MessageContentImageUrl? imageUrl)
imageUrl,
}) =>
throw _privateConstructorUsedError;