Library class

A Library provides information about a Dart language library.

See VmService.setLibraryDebuggable.

Inheritance
Implemented types

Constructors

Library({String? name, String? uri, bool? debuggable, List<LibraryDependency>? dependencies, List<ScriptRef>? scripts, List<FieldRef>? variables, List<FuncRef>? functions, List<ClassRef>? classes, required String id})

Properties

classes List<ClassRef>?
A list of all classes in this library.
getter/setter pair
classRef ClassRef?
If an object is allocated in the Dart heap, it will have a corresponding class object.
getter/setter pairinherited
debuggable bool?
Is this library debuggable? Default true.
getter/setter pair
dependencies List<LibraryDependency>?
A list of the imports for this library.
getter/setter pair
fixedId bool?
Provided and set to true if the id of an Object is fixed. If true, the id of an Object is guaranteed not to change or expire. The object may, however, still be Collected.
getter/setter pairinherited
functions List<FuncRef>?
A list of the top-level functions in this library.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
id String?
A unique identifier for an Object. Passed to the getObject RPC to reload this Object.
getter/setter pairinherited
json Map<String, dynamic>?
getter/setter pairinherited
name String?
The name of this library.
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scripts List<ScriptRef>?
A list of the scripts which constitute this library.
getter/setter pair
size int?
The size of this object in the heap.
getter/setter pairinherited
type String
no setteroverride
uri String?
The uri of this library.
getter/setter pairoverride
variables List<FieldRef>?
A list of the top-level variables in this library.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

parse(Map<String, dynamic>? json) Library?
override