when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult heading1(
    1. List<Span> spans,
    2. String text,
    3. String type
    ),
  2. required TResult heading2(
    1. List<Span> spans,
    2. String text,
    3. String type
    ),
  3. required TResult heading3(
    1. List<Span> spans,
    2. String text,
    3. String type
    ),
  4. required TResult heading4(
    1. List<Span> spans,
    2. String text,
    3. String type
    ),
  5. required TResult heading5(
    1. List<Span> spans,
    2. String text,
    3. String type
    ),
  6. required TResult heading6(
    1. List<Span> spans,
    2. String text,
    3. String type
    ),
  7. required TResult paragraph(
    1. List<Span> spans,
    2. String text,
    3. String type
    ),
  8. required TResult listItem(
    1. List<Span> spans,
    2. String text,
    3. String type
    ),
  9. required TResult orderedListItem(
    1. List<Span> spans,
    2. String text,
    3. String type
    ),
  10. required TResult image(
    1. String? alt,
    2. String? copyright,
    3. Dimension dimensions,
    4. String url,
    ),
  11. required TResult embed(
    1. EmbedData info,
    2. String type
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(List<Span> spans, String text, String type)
      heading1,
  required TResult Function(List<Span> spans, String text, String type)
      heading2,
  required TResult Function(List<Span> spans, String text, String type)
      heading3,
  required TResult Function(List<Span> spans, String text, String type)
      heading4,
  required TResult Function(List<Span> spans, String text, String type)
      heading5,
  required TResult Function(List<Span> spans, String text, String type)
      heading6,
  required TResult Function(List<Span> spans, String text, String type)
      paragraph,
  required TResult Function(List<Span> spans, String text, String type)
      listItem,
  required TResult Function(List<Span> spans, String text, String type)
      orderedListItem,
  required TResult Function(
          String? alt, String? copyright, Dimension dimensions, String url)
      image,
  required TResult Function(
          @JsonKey(name: 'oembed') EmbedData info, String type)
      embed,
}) =>
    throw _privateConstructorUsedError;