whenOrNull<TResult extends Object?> method

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

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  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,
  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;