Class class

A Class provides information about a Dart language class.

Implemented types


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})


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


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


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

Static Methods

parse(Map<String, dynamic>? json) Class?