removeAction method
Removes a DebugAction from ActionValuePage via its onAction.
Don't forget to remove it with removeAction in your State.dispose!
Implementation
void removeAction(VoidCallback onAction) {
_actions.removeWhere((element) => element.onAction == onAction);
_safeSetState();
}