LedgerJournalsPatterns extension
Adds pattern-matching-related methods to LedgerJournals.
Methods
-
map<
TResult extends Object?> (TResult $default(_LedgerJournals value)) → TResult -
Available on LedgerJournals, provided by the LedgerJournalsPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_LedgerJournals value)?) → TResult? -
Available on LedgerJournals, provided by the LedgerJournalsPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_LedgerJournals value)?, {required TResult orElse()}) → TResult -
Available on LedgerJournals, provided by the LedgerJournalsPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(List< LedgerJournal> ledgerJournals)?, {required TResult orElse()}) → TResult -
Available on LedgerJournals, provided by the LedgerJournalsPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
when<
TResult extends Object?> (TResult $default(List< LedgerJournal> ledgerJournals)) → TResult -
Available on LedgerJournals, provided by the LedgerJournalsPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(List< LedgerJournal> ledgerJournals)?) → TResult? -
Available on LedgerJournals, provided by the LedgerJournalsPatterns extension
A variant ofwhenthat fallback to returningnull