BiDi<A, B> constructor

BiDi<A, B>({
  1. required B forward(
    1. A a
    ),
  2. required A backward(
    1. B b
    ),
})

Implementation

factory BiDi({
  required B Function(A a) forward,
  required A Function(B b) backward,
}) = _BiDiImpl;