Class class Null safety

A Class provides information about a Dart language class.

Inheritance
Implemented types

Constructors

Class({String? name, LibraryRef? library, bool? isAbstract, bool? isConst, 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.
optional">@optionalread / writeinherited
error ErrorRef?
The error which occurred during class finalization, if it exists.
optional">@optionalread / 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.
optional">@optionalread / 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.
read-onlyoverride
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
isConst bool?
Is this a const 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.
optional">@optionalread / writeoverride
mixin InstanceRef?
The mixin type for this class, if any.
optional">@optionalread / write
name String?
The name of this class.
read / writeoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
size int?
The size of this object in the heap.
optional">@optionalread / writeinherited
subclasses List<ClassRef>?
A list of subclasses of this class.
read / write
superClass ClassRef?
The superclass of this class, if any.
optional">@optionalread / write
superType InstanceRef?
The supertype for this class, if any.
optional">@optionalread / write
traceAllocations bool?
Are allocations of this class being traced?
read / write
type String
read-onlyoverride
typeParameters List<InstanceRef>?
The type parameters for the class.
optional">@optionalread / writeoverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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