Override class

A class that represents a node override.

Constructors

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.

Properties

builder → BuilderFunction?
final
component → String?
final
hashCode → int
The hash code for this object.
no setterinherited
id → ID
final
node → ID
final
properties → List<NodeProperty>
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

copyWith({String? node, String? component, List<NodeProperty>? properties, BuilderFunction? builder}) → Override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setChild(Widget child) → void
setChildren(List<Widget> children) → void
setColor(Color? color) → void
setDropdownItems(List<DropdownMenuItem>? dropdownItems) → void
setDropdownValue(dynamic data) → void
setIcon(IconData data) → void
setImage(String data) → void
setText(String data) → void
toJson() → Map<String, dynamic>
toString() → ID
A string representation of this object.

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromJson(Map<String, dynamic> json) → Override
fromJsonList(List json) → List<Override>