map<T> abstract method

T map<T>(
  1. T left(
    1. L
    ),
  2. T right(
    1. R
    )
)

Maps the value of this Union using left if the value is of type L, or right if the value is of type R.

Implementation

T map<T>(T Function(L) left, T Function(R) right);