ProcessSessionCommandPatterns extension
Adds pattern-matching-related methods to ProcessSessionCommand.
Methods
-
map<
TResult extends Object?> (TResult $default(_ProcessSessionCommand value)) → TResult -
Available on ProcessSessionCommand, provided by the ProcessSessionCommandPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_ProcessSessionCommand value)?) → TResult? -
Available on ProcessSessionCommand, provided by the ProcessSessionCommandPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_ProcessSessionCommand value)?, {required TResult orElse()}) → TResult -
Available on ProcessSessionCommand, provided by the ProcessSessionCommandPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String commandId, String attemptId, String instanceFence, String body)?, {required TResult orElse()}) → TResult -
Available on ProcessSessionCommand, provided by the ProcessSessionCommandPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(String commandId, String attemptId, String instanceFence, String body)) → TResult -
Available on ProcessSessionCommand, provided by the ProcessSessionCommandPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String commandId, String attemptId, String instanceFence, String body)?) → TResult? -
Available on ProcessSessionCommand, provided by the ProcessSessionCommandPatterns extension
A variant ofwhenthat fallback to returningnull