match<T> method

  1. @override
T match<T>({
  1. required T line(
    1. LineState
    ),
  2. required T embed(
    1. EmbedState
    ),
})
override

Execute line if this is a LineState and embed if this is an EmbedState.

Implementation

@override
T match<T>({
  required T Function(LineState) line,
  required T Function(EmbedState) embed,
}) =>
    embed(this);