when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult fileCitation(
    1. int index,
    2. String type,
    3. String? text,
    4. MessageDeltaContentTextAnnotationsFileCitation? fileCitation,
    5. int? startIndex,
    6. int? endIndex,
    ),
  2. required TResult filePath(
    1. int index,
    2. String type,
    3. String? text,
    4. MessageDeltaContentTextAnnotationsFilePathObjectFilePath? filePath,
    5. int? startIndex,
    6. int? endIndex,
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(
          int index,
          String type,
          @JsonKey(includeIfNull: false) String? text,
          @JsonKey(name: 'file_citation', includeIfNull: false)
          MessageDeltaContentTextAnnotationsFileCitation? fileCitation,
          @JsonKey(name: 'start_index', includeIfNull: false) int? startIndex,
          @JsonKey(name: 'end_index', includeIfNull: false) int? endIndex)
      fileCitation,
  required TResult Function(
          int index,
          String type,
          @JsonKey(includeIfNull: false) String? text,
          @JsonKey(name: 'file_path', includeIfNull: false)
          MessageDeltaContentTextAnnotationsFilePathObjectFilePath? filePath,
          @JsonKey(name: 'start_index', includeIfNull: false) int? startIndex,
          @JsonKey(name: 'end_index', includeIfNull: false) int? endIndex)
      filePath,
}) =>
    throw _privateConstructorUsedError;