match<T> method

  1. @override
T match<T>({
  1. required T line(
    1. LineParagraph
    ),
  2. required T embed(
    1. ParagraphEmbed
    ),
})
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);