Future<W> match<W>( {required FutureOr<W> Function(S) ok, required FutureOr<W> Function(F) err}) { return then<W>((result) => result.match(ok: ok, err: err)); }