registerAction method
void
registerAction(
- String name,
- ExecutorFunction<
ActionResult> executor, { - bool abstract = false,
- String? baseType = EditorAction.action,
- Map<
String, EditorPropertyType> ? properties, - Map<
String, EditorActionType> ? actions,
Implementation
@nonVirtual
void registerAction(
String name,
ExecutorFunction<ActionResult> executor, {
bool abstract = false,
String? baseType = EditorAction.action,
Map<String, EditorPropertyType>? properties,
Map<String, EditorActionType>? actions,
}) {
_registerAction(
name,
executor,
EditorAction(
abstract: abstract,
baseType: baseType,
properties: properties,
actions: actions,
),
);
}