Class class

A Class provides information about a Dart language class.

Inheritance
Implemented types

Constructors

Class({String? name, LibraryRef? library, bool? isAbstract, bool? isConst, bool? isSealed, bool? isMixinClass, bool? isBaseClass, bool? isInterfaceClass, bool? isFinal, bool? traceAllocations, List<InstanceRef>? interfaces, List<FieldRef>? fields, List<FuncRef>? functions, List<ClassRef>? subclasses, required String id, SourceLocation? location, List<InstanceRef>? typeParameters, ErrorRef? error, ClassRef? superClass, InstanceRef? superType, InstanceRef? mixin})

Properties

classRef ClassRef?
If an object is allocated in the Dart heap, it will have a corresponding class object.
getter/setter pairinherited
error ErrorRef?
The error which occurred during class finalization, if it exists.
getter/setter pair
fields List<FieldRef>?
A list of fields in this class. Does not include fields from superclasses.
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 functions in this class. Does not include functions from superclasses.
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
interfaces List<InstanceRef>?
A list of interface types for this class.
getter/setter pair
isAbstract bool?
Is this an abstract class?
getter/setter pair
isBaseClass bool?
Is this a base class?
getter/setter pair
isConst bool?
Is this a const class?
getter/setter pair
isFinal bool?
Is this a final class?
getter/setter pair
isInterfaceClass bool?
Is this an interface class?
getter/setter pair
isMixinClass bool?
Is this a mixin class?
getter/setter pair
isSealed bool?
Is this a sealed class?
getter/setter pair
json Map<String, dynamic>?
getter/setter pairinherited
library LibraryRef?
The library which contains this class.
getter/setter pairoverride
location SourceLocation?
The location of this class in the source code.
getter/setter pairoverride
mixin InstanceRef?
The mixin type for this class, if any.
getter/setter pair
name String?
The name of this class.
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int?
The size of this object in the heap.
getter/setter pairinherited
subclasses List<ClassRef>?
A list of subclasses of this class.
getter/setter pair
superClass ClassRef?
The superclass of this class, if any.
getter/setter pair
superType InstanceRef?
The supertype for this class, if any.
getter/setter pair
traceAllocations bool?
Are allocations of this class being traced?
getter/setter pair
type String
no setteroverride
typeParameters List<InstanceRef>?
The type parameters for the class.
getter/setter pairoverride

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) Class?
override