registerLoadPageAction method

  1. @nonVirtual
void registerLoadPageAction(
  1. String name,
  2. PageLoadFunction<LoadPageActionEvent, PageLoadedState> executor, {
  3. bool abstract = false,
  4. String? baseType = EditorAction.listAction,
  5. Map<String, EditorPropertyType>? properties,
  6. Map<String, EditorActionType>? actions,
})

Implementation

@nonVirtual
void registerLoadPageAction(
  String name,
  PageLoadFunction<LoadPageActionEvent, PageLoadedState> executor, {
  bool abstract = false,
  String? baseType = EditorAction.listAction,
  Map<String, EditorPropertyType>? properties,
  Map<String, EditorActionType>? actions,
}) {
  _pageLoadExecutors[name] = executor;
  _schema[name] = EditorAction(
    abstract: abstract,
    baseType: baseType,
    properties: properties,
    actions: actions,
  );
}