coreActionSpecs top-level constant
The core action types (the CoreAction family).
Implementation
const List<ActionSpec> coreActionSpecs = [
ActionSpec(NavigateAction.typeName, label: 'Navigate', fields: NavigateFields.all, decode: NavigateAction._fromJson),
ActionSpec(OpenModalAction.typeName, label: 'Open modal', fields: OpenModalFields.all, decode: OpenModalAction._fromJson),
ActionSpec(CloseModalAction.typeName, label: 'Close modal', fields: CloseModalFields.all, decode: CloseModalAction._fromJson),
ActionSpec(RetryFailedAction.typeName, label: 'Retry failed actions', fields: [], doc: 'In an actionError reaction: runs the failed action chain again.', decode: RetryFailedAction._fromJson),
ActionSpec(OpenLinkAction.typeName, label: 'Open link', fields: OpenLinkFields.all, decode: OpenLinkAction._fromJson),
ActionSpec(SetValueAction.typeName, label: 'Set value', fields: SetValueFields.all, decode: SetValueAction._fromJson),
ActionSpec(SetVariantAction.typeName, label: 'Set variant', fields: SetVariantFields.all, decode: SetVariantAction._fromJson),
ActionSpec(SetVariableAction.typeName, label: 'Set variable', fields: SetVariableFields.all, decode: SetVariableAction._fromJson),
ActionSpec(CallFunctionAction.typeName, label: 'Call function', fields: CallFunctionFields.all, decode: CallFunctionAction._fromJson),
ActionSpec(IfAction.typeName, label: 'If', fields: IfFields.all, decode: IfAction._fromJson, nested: ['then', 'else']),
ActionSpec(ForEachAction.typeName, label: 'For each', fields: ForEachFields.all, decode: ForEachAction._fromJson, nested: ['actions']),
ActionSpec(AnnounceAction.typeName, label: 'Announce', fields: AnnounceFields.all, decode: AnnounceAction._fromJson),
ActionSpec(ShowToastAction.typeName, label: 'Show toast', fields: ShowToastFields.all, decode: ShowToastAction._fromJson, nested: ['actions']),
ActionSpec(ConfirmAction.typeName, label: 'Confirm', fields: ConfirmFields.all, decode: ConfirmAction._fromJson, nested: ['actions', 'cancelActions']),
ActionSpec(DelayAction.typeName, label: 'Delay', fields: DelayFields.all, decode: DelayAction._fromJson),
ActionSpec(CopyToClipboardAction.typeName, label: 'Copy to clipboard', fields: CopyToClipboardFields.all, decode: CopyToClipboardAction._fromJson),
ActionSpec(SetThemeModeAction.typeName,
label: 'Set theme mode',
fields: SetThemeModeFields.all,
doc: 'Sets the site\'s theme mode (Flutter\'s ThemeMode: system, light or dark), as an app sets MaterialApp.themeMode: '
'every screen redraws its named colors, text styles and controls in it; with persist (the default) the choice '
'survives a reload. JSON: {"type": "setThemeMode", "mode": "\${= theme.isDark ? \'light\' : \'dark\'}"}.',
decode: SetThemeModeAction._fromJson),
ActionSpec(EditTextAction.typeName, label: 'Edit text', fields: EditTextFields.all, decode: EditTextAction._fromJson),
ActionSpec(FocusAction.typeName, label: 'Focus', fields: FocusFields.all, decode: FocusAction._fromJson),
ActionSpec(ValidateAction.typeName,
label: 'Validate form',
fields: ValidateFields.all,
doc: 'Flutter\'s FormState.validate(): every field of the form shows its validator\'s error; the first invalid one takes the focus. \${result}: whether all are valid.',
decode: ValidateAction._fromJson),
ActionSpec(ControlTrackAction.typeName, label: 'Control track', fields: ControlTrackFields.all, decode: ControlTrackAction._fromJson),
ActionSpec(ControlDismissibleAction.typeName, label: 'Control dismissible', fields: ControlDismissibleFields.all, decode: ControlDismissibleAction._fromJson),
ActionSpec(ControlTransformAction.typeName, label: 'Control transform', fields: ControlTransformFields.all, decode: ControlTransformAction._fromJson),
ActionSpec(ScrollToAction.typeName, label: 'Scroll to', fields: ScrollToFields.all, decode: ScrollToAction._fromJson),
ActionSpec(AnimateAction.typeName, label: 'Animate', fields: AnimateFields.all, decode: AnimateAction._fromJson),
ActionSpec(HapticAction.typeName, label: 'Haptic feedback', fields: HapticFields.all, decode: HapticAction._fromJson),
ActionSpec(RunScriptAction.typeName, label: 'Run script', fields: RunScriptFields.all, decode: RunScriptAction._fromJson, nested: ['onError']),
ActionSpec(PaginateAction.typeName, label: 'Paginate', fields: PaginateFields.all, decode: PaginateAction._fromJson),
ActionSpec(ComponentEventAction.typeName,
label: 'Fire component event',
fields: ComponentEventFields.all,
doc: 'Inside a component: fires one of its declared events; the call\'s event reactions run with the value as \${result}.',
decode: ComponentEventAction._fromJson),
];