StarTransactionsPatterns extension

Adds pattern-matching-related methods to StarTransactions.

on

Methods

map<TResult extends Object?>(TResult $default(_StarTransactions value)) → TResult

Available on StarTransactions, provided by the StarTransactionsPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_StarTransactions value)?) → TResult?

Available on StarTransactions, provided by the StarTransactionsPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_StarTransactions value)?, {required TResult orElse()}) → TResult

Available on StarTransactions, provided by the StarTransactionsPatterns extension

A variant of map that fallback to returning orElse.