match<B> method

B match<B>({
  1. required B onNone,
  2. required B onSome(
    1. A
    ),
})

Implementation

B match<B>({
  required B onNone,
  required B Function(A) onSome,
}) =>
    O.match(
      onNone: onNone,
      onSome: onSome,
    )(_option);