SectionPbx class

Inheritance

Constructors

SectionPbx({required String name, List<NamedComponent> children = const []})

Properties

childrenList List<NamedComponent>
no setterinherited
childrenMap HashMap<String, NamedComponent>
no setterinherited
comment String?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uuid String
finalinherited

Methods

add(NamedComponent component) → void
add is a method that adds a new NamedComponent to the list of children and updates the mapping of children by associating the component's UUID with the component itself.
inherited
childrenToString(List<NamedComponent> children, {int indentLevel = 0, bool removeN = false}) String
inherited
copyWith({String? name, List<NamedComponent>? children}) SectionPbx
override
find<T extends NamedComponent>(String key) → T?
The universal find method takes a String key and returns an instance of type T that extends NamedComponent, or null if not found.
inherited
findComment<T extends NamedComponent>(String comment) → T?
findComment is a method that searches for a component of type T that extends NamedComponent based on a given comment string. It returns the found component or null if not found.
inherited
formatOutput(String output) String
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String uuid) → void
remove is a method that removes a NamedComponent from the list of children based on the component's UUID. It also removes the mapping of the component from the children map.
inherited
replaceOrAdd(NamedComponent component) → void
replaceOrAdd replaces an existing NamedComponent in the list of children with a new component if it already exists, or adds a new component to the list.
inherited
toString({int indentLevel = 0, bool removeN = false}) String
A string representation of this object.

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String key) NamedComponent?
The [] operator allows accessing a NamedComponent from the list of children based on its UUID. Returns the corresponding NamedComponent if found, or null.
inherited