GRPCConfigPatterns extension
Adds pattern-matching-related methods to GRPCConfig.
- on
Methods
-
map<
TResult extends Object?> (TResult $default(_GRPCConfig value)) → TResult -
Available on GRPCConfig, provided by the GRPCConfigPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_GRPCConfig value)?) → TResult? -
Available on GRPCConfig, provided by the GRPCConfigPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_GRPCConfig value)?, {required TResult orElse()}) → TResult -
Available on GRPCConfig, provided by the GRPCConfigPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String? authority, String? serviceName, bool? multiMode, int? idleTimeout, int? healthCheckTimeout, bool? permitWithoutStream, int? initialWindowsSize, String? userAgent)?, {required TResult orElse()}) → TResult -
Available on GRPCConfig, provided by the GRPCConfigPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(String? authority, String? serviceName, bool? multiMode, int? idleTimeout, int? healthCheckTimeout, bool? permitWithoutStream, int? initialWindowsSize, String? userAgent)) → TResult -
Available on GRPCConfig, provided by the GRPCConfigPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String? authority, String? serviceName, bool? multiMode, int? idleTimeout, int? healthCheckTimeout, bool? permitWithoutStream, int? initialWindowsSize, String? userAgent)?) → TResult? -
Available on GRPCConfig, provided by the GRPCConfigPatterns extension
A variant ofwhenthat fallback to returningnull