when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult images(
    1. Images data
    ),
  2. required TResult video(
    1. Video data
    ),
  3. required TResult external(
    1. External data
    ),
  4. required TResult record(
    1. Record data
    ),
  5. required TResult recordWithMedia(
    1. RecordWithMedia data
    ),
  6. required TResult unknown(
    1. Map<String, dynamic> data
    ),
})
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;