mapBoth<C, D> method

  1. @override
Either<D, C> mapBoth<C, D>({
  1. required D onLeft(
    1. L l
    ),
  2. required C onRight(
    1. R r
    ),
})
override

Implementation

@override
Either<D, C> mapBoth<C, D>(
        {required D Function(L l) onLeft,
        required C Function(R r) onRight}) =>
    Right(onRight(value));