match<A, B> function
Implementation
B Function(Option<A>) match<A, B>({
required B onNone,
required B Function(A) onSome,
}) =>
(option) => switch (option) {
Some(value: final value) => onSome(value),
None() => onNone
};