when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult imagesView(
    1. ImagesView data
    ),
  2. required TResult videoView(
    1. VideoView data
    ),
  3. required TResult externalView(
    1. ExternalView data
    ),
  4. required TResult recordView(
    1. RecordView data
    ),
  5. required TResult recordWithMediaView(
    1. RecordWithMediaView data
    ),
  6. required TResult unknown(
    1. Map<String, dynamic> data
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(ImagesView data) imagesView,
  required TResult Function(VideoView data) videoView,
  required TResult Function(ExternalView data) externalView,
  required TResult Function(RecordView data) recordView,
  required TResult Function(RecordWithMediaView data) recordWithMediaView,
  required TResult Function(Map<String, dynamic> data) unknown,
}) =>
    throw _privateConstructorUsedError;