when<TResult extends Object?> method
- @optionalTypeArgs
- required TResult images(
- Images data
- required TResult video(
- Video data
- required TResult external(
- External data
- required TResult record(
- Record data
- required TResult recordWithMedia(
- RecordWithMedia data
- required TResult unknown(),
inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(Images data) images,
required TResult Function(Video data) video,
required TResult Function(External data) external,
required TResult Function(Record data) record,
required TResult Function(RecordWithMedia data) recordWithMedia,
required TResult Function(Map<String, dynamic> data) unknown,
}) =>
throw _privateConstructorUsedError;