match<T> method
T
match<T>({
- required T line(),
- required T embed(),
override
Execute line
if this is a LineParagraph and embed
if this is a
ParagraphEmbed.
Implementation
@override
T match<T>({
required T Function(LineParagraph) line,
required T Function(ParagraphEmbed) embed,
}) =>
line(this);