FieldRef class
An FieldRef
is a reference to a Field
.
Constructors
- FieldRef({String? name, ObjRef? owner, InstanceRef? declaredType, bool? isConst, bool? isFinal, bool? isStatic, required String id, SourceLocation? location})
Properties
- declaredType ↔ InstanceRef?
-
The declared type of this field.
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
- hashCode → int
-
The hash code for this object.
no setteroverride
- id ↔ String?
-
A unique identifier for an Object. Passed to the getObject RPC to load
this Object.
getter/setter pairinherited
- isConst ↔ bool?
-
Is this field const?
getter/setter pair
- isFinal ↔ bool?
-
Is this field final?
getter/setter pair
- isStatic ↔ bool?
-
Is this field static?
getter/setter pair
-
json
↔ Map<
String, dynamic> ? -
getter/setter pairinherited
- location ↔ SourceLocation?
-
The location of this field in the source code.
getter/setter pair
- name ↔ String?
-
The name of this field.
getter/setter pair
- owner ↔ ObjRef?
-
The owner of this field, which can be either a Library or a Class.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
no setteroverride
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