registerWidget method
void
registerWidget(
- String name,
- WidgetBuilderFunc builder, {
- bool abstract = false,
- String? baseType = EditorWidget.widget,
- Map<
String, EditorWidgetType> ? widgets, - Map<
String, EditorActionType> ? actions, - Map<
String, EditorPropertyType> ? properties, - List<
String> ? tags,
Implementation
@nonVirtual
void registerWidget(
String name,
WidgetBuilderFunc builder, {
bool abstract = false,
String? baseType = EditorWidget.widget,
Map<String, EditorWidgetType>? widgets,
Map<String, EditorActionType>? actions,
Map<String, EditorPropertyType>? properties,
List<String>? tags,
}) {
_widgetBuilders[name] = builder;
_schema[name] = EditorWidget(
abstract: abstract,
baseType: baseType,
widgets: widgets,
actions: actions,
properties: properties,
tags: tags,
);
}