Override constructor

Override(
  1. String node, {
  2. BuilderFunction? builder,
  3. String? component,
  4. List<NodeProperty>? props,
  5. Color? color,
  6. String? image,
  7. String? text,
  8. dynamic dropdownValue,
  9. List<DropdownMenuItem>? dropdownItems,
  10. IconData? icon,
  11. Widget? child,
  12. 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);
  }
}