match<R> method
Pattern matches this option.
final label = const Some<int>(42).match(
some: (value) => 'count=$value',
none: () => 'missing',
);
Implementation
@override
R match<R>({
required R Function(T value) some,
required R Function() none,
}) {
return some(value);
}