Root class
Top-level node for the AST.
Constructors
-
Root({required List<
Class> classes, required List<Api> apis, required List<Enum> enums, bool containsHostApi = false, bool containsFlutterApi = false, bool containsProxyApi = false, bool containsEventChannel = false}) - Parametric constructor for Root.
- Root.makeEmpty()
-
Factory function for generating an empty root, usually used when early errors are encountered.
factory
Properties
-
apis
↔ List<
Api> -
All the API's contained in the AST.
getter/setter pair
-
classes
↔ List<
Class> -
All the classes contained in the AST.
getter/setter pair
- containsEventChannel ↔ bool
-
Whether the root has any event channel definitions.
getter/setter pair
- containsFlutterApi ↔ bool
-
Whether the root has any Flutter API definitions.
getter/setter pair
- containsHostApi ↔ bool
-
Whether the root has any Host API definitions.
getter/setter pair
- containsProxyApi ↔ bool
-
Whether the root has any Proxy API definitions.
getter/setter pair
-
enums
↔ List<
Enum> -
All of the enums contained in the AST.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- requiresOverflowClass → bool
-
Returns true if the number of custom types would exceed the available enumerations
on the standard codec.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited