populateQuickActions method
Populate maps for actions at startup to optimise performance.
Implementation
void populateQuickActions() async {
/// A list of actions that the app will support at runtime.
final List<QuickAction> availableQuickActions = [
CardCreatorAction(),
InstantExportAction(),
AddToStashAction(),
CopyToClipboardAction(),
ShareAction(),
PlayAudioAction(),
];
quickActions = Map<String, QuickAction>.unmodifiable(
Map<String, QuickAction>.fromEntries(
availableQuickActions.map(
(quickAction) => MapEntry(quickAction.uniqueKey, quickAction),
),
),
);
}