DartLibrary class
Representation of a Dart library
- Inheritance
-
- Object
- DartElement
- DartLibrary
- Implemented types
Constructors
-
DartLibrary({required String name, required ElementLocation location, DartElementRef<
DartElement> ? parentRef, List<DartClass> classes = const [], List<DartMethod> methods = const [], List<DartVariable> variables = const [], List<DartLibraryDependency> dependencies = const []})
Properties
-
children
→ List<
DartDeclaration> -
This method should return all queriable elements that are declared inside
of this element, considering that a queriable element is an element that have
a known location and a name.
no setteroverride
-
classes
→ List<
DartClass> -
final
-
dependencies
→ List<
DartLibraryDependency> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- library → String
-
no setterinherited
- location → ElementLocation
-
finalinherited
-
methods
→ List<
DartMethod> -
final
- name → String
-
finalinherited
- package → String
-
no setterinherited
-
parentRef
→ DartElementRef<
DartElement> ? -
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setteroverride
- 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 -
variables
→ List<
DartVariable> -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited