Pbxproj class

Inheritance

Constructors

Pbxproj({List<NamedComponent> children = const [], required String path})
Pbxproj.parse(String content, {String path = "project.pbxproj"})
Parses a Pbxproj file's content
factory

Properties

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

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({List<NamedComponent>? children, String? path}) Pbxproj
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
generateUuid() String
The generateUuid method generates a unique identifier (UUID) by randomly selecting characters from a predefined string. It uses the Random class to generate random indices and selects the corresponding characters from the chars string. The generated UUID is then passed to the _checkUuid method.
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
save() Future<void>
save defines a save method in the Pbxproj class. It creates a File object from a specified path and writes the result of calling the toString method into the file asynchronously.
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

Static Methods

indent(int indentLevel) String
This is a static method in Dart that takes an indentLevel as an argument and returns a string of spaces equal to the indentLevel multiplied by 4. This is commonly used to create indentation in code for readability.
open(String path) Future<Pbxproj>
open is a static method in Dart that takes a path as an argument and returns a Future that resolves to a Pbxproj object.