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