when<TResult extends Object?> method
- @optionalTypeArgs
- required TResult heading1(),
- required TResult heading2(),
- required TResult heading3(),
- required TResult heading4(),
- required TResult heading5(),
- required TResult heading6(),
- required TResult paragraph(),
- required TResult listItem(),
- required TResult orderedListItem(),
- required TResult image(),
- required TResult embed(
- EmbedData info,
- 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;