upsertAction method
Implementation
void upsertAction(
List<Page> Function(List<Page>) actionFunc, dynamic actionKey) {
if (actions!.containsKey(actionKey)) {
actions!.update(actionKey, (_) => actionFunc);
return;
}
actions![actionKey] = actionFunc;
_afterAction();
}