EncryptedKeyUpdateParamsPatterns extension

Adds pattern-matching-related methods to EncryptedKeyUpdateParams.

on

Methods

map<TResult extends Object?>({required TResult rename(_EncryptedKeyUpdateParamsRename value), required TResult changePassword(_EncryptedKeyUpdateParamsChangePassword value)}) → TResult

Available on EncryptedKeyUpdateParams, provided by the EncryptedKeyUpdateParamsPatterns extension

A switch-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 of map that fallback to returning null.
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 of map that fallback to returning orElse.
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 of when that fallback to an orElse callback.
when<TResult extends Object?>({required TResult rename(EncryptedKeyUpdateParamsRename data), required TResult changePassword(EncryptedKeyUpdateParamsChangePassword data)}) → TResult

Available on EncryptedKeyUpdateParams, provided by the EncryptedKeyUpdateParamsPatterns extension

A switch-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 of when that fallback to returning null