match<C> method

  1. @override
C match<C>(
  1. C onLeft(
    1. L l
    ),
  2. C onRight(
    1. R r
    )
)
override

Execute onLeft when value is Left, otherwise execute onRight.

Same as fold.

Implementation

@override
C match<C>(C Function(L l) onLeft, C Function(R r) onRight) =>
    onRight(_value);