Override constructor
Override(
- String node, {
- BuilderFunction? builder,
- String? component,
- List<
NodeProperty> ? props, - Color? color,
- String? image,
- String? text,
- dynamic dropdownValue,
- List<
DropdownMenuItem> ? dropdownItems, - IconData? icon,
- Widget? child,
- List<
Widget> ? children,
Creates a node override.
Implementation
Override(
this.node, {
this.builder,
this.component,
final List<NodeProperty>? props,
final Color? color,
final String? image,
final String? text,
final dynamic dropdownValue,
final List<DropdownMenuItem<dynamic>>? dropdownItems,
final IconData? icon,
final Widget? child,
final List<Widget>? children,
}) {
if (props != null) {
properties.addAll(props);
}
if (color != null) {
setColor(color);
}
if (image != null) {
setImage(image);
}
if (text != null) {
setText(text);
}
if (icon != null) {
setIcon(icon);
}
if (dropdownValue != null) {
setDropdownValue(dropdownValue);
}
if (dropdownItems != null) {
setDropdownItems(dropdownItems);
}
if (child != null) {
setChild(child);
}
if (children != null) {
setChildren(children);
}
}