EncryptedKeyUpdateParamsPatterns extension
Adds pattern-matching-related methods to EncryptedKeyUpdateParams.
Methods
-
map<
TResult extends Object?> ({required TResult rename(_EncryptedKeyUpdateParamsRename value), required TResult changePassword(_EncryptedKeyUpdateParamsChangePassword value)}) → TResult -
Available on EncryptedKeyUpdateParams, provided by the EncryptedKeyUpdateParamsPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> ({TResult? rename(_EncryptedKeyUpdateParamsRename value)?, TResult? changePassword(_EncryptedKeyUpdateParamsChangePassword value)?}) → TResult? -
Available on EncryptedKeyUpdateParams, provided by the EncryptedKeyUpdateParamsPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> ({TResult rename(_EncryptedKeyUpdateParamsRename value)?, TResult changePassword(_EncryptedKeyUpdateParamsChangePassword value)?, required TResult orElse()}) → TResult -
Available on EncryptedKeyUpdateParams, provided by the EncryptedKeyUpdateParamsPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> ({TResult rename(EncryptedKeyUpdateParamsRename data)?, TResult changePassword(EncryptedKeyUpdateParamsChangePassword data)?, required TResult orElse()}) → TResult -
Available on EncryptedKeyUpdateParams, provided by the EncryptedKeyUpdateParamsPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
when<
TResult extends Object?> ({required TResult rename(EncryptedKeyUpdateParamsRename data), required TResult changePassword(EncryptedKeyUpdateParamsChangePassword data)}) → TResult -
Available on EncryptedKeyUpdateParams, provided by the EncryptedKeyUpdateParamsPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> ({TResult? rename(EncryptedKeyUpdateParamsRename data)?, TResult? changePassword(EncryptedKeyUpdateParamsChangePassword data)?}) → TResult? -
Available on EncryptedKeyUpdateParams, provided by the EncryptedKeyUpdateParamsPatterns extension
A variant ofwhen
that fallback to returningnull