FuncRef class

An FuncRef is a reference to a Func.



FuncRef({String? name, dynamic owner, bool? isStatic, bool? isConst, bool? implicit, bool? isAbstract, bool? isGetter, bool? isSetter, required String id, SourceLocation? location})


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
implicit bool?
Is this function implicitly defined (e.g., implicit getter/setter)?
getter/setter pair
isAbstract bool?
Is this function an abstract method?
getter/setter pair
isConst bool?
Is this function const?
getter/setter pair
isGetter bool?
Is this function a getter?
getter/setter pair
isSetter bool?
Is this function a setter?
getter/setter pair
isStatic bool?
Is this function static?
getter/setter pair
json Map<String, dynamic>?
getter/setter pairinherited
location SourceLocation?
The location of this function in the source code.
getter/setter pair
name String?
The name of this function.
getter/setter pair
owner ↔ dynamic
The owner of this function, which can be a Library, Class, or a Function.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
no setteroverride


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) FuncRef?