match<R> method
Pattern matches this result.
final label = const Ok<int, String>(42).match(
ok: (value) => 'count=$value',
err: (error) => error,
);
Implementation
@override
R match<R>({
required R Function(T value) ok,
required R Function(E error) err,
}) {
return ok(value);
}