KCPConfigPatterns extension
Adds pattern-matching-related methods to KCPConfig.
- on
Methods
-
map<
TResult extends Object?> (TResult $default(_KCPConfig value)) → TResult -
Available on KCPConfig, provided by the KCPConfigPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_KCPConfig value)?) → TResult? -
Available on KCPConfig, provided by the KCPConfigPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_KCPConfig value)?, {required TResult orElse()}) → TResult -
Available on KCPConfig, provided by the KCPConfigPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(int? mtu, int? tti, int? upCap, int? downCap, int? cwndMultiplier, int? maxSendingWindow, Map< String, dynamic> ? header, String? seed)?, {required TResult orElse()}) → TResult -
Available on KCPConfig, provided by the KCPConfigPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(int? mtu, int? tti, int? upCap, int? downCap, int? cwndMultiplier, int? maxSendingWindow, Map< String, dynamic> ? header, String? seed)) → TResult -
Available on KCPConfig, provided by the KCPConfigPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(int? mtu, int? tti, int? upCap, int? downCap, int? cwndMultiplier, int? maxSendingWindow, Map< String, dynamic> ? header, String? seed)?) → TResult? -
Available on KCPConfig, provided by the KCPConfigPatterns extension
A variant ofwhenthat fallback to returningnull