Func class

A Func represents a Dart language function.

Implemented types


Func({String? name, dynamic owner, bool? isStatic, bool? isConst, bool? implicit, bool? isAbstract, InstanceRef? signature, required String id, SourceLocation? location, CodeRef? code})


classRef ClassRef?
If an object is allocated in the Dart heap, it will have a corresponding class object.
read / writeinherited
code CodeRef?
The compiled code associated with this function.
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
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
implicit bool?
Is this function implicitly defined (e.g., implicit getter/setter)?
read / writeoverride
isAbstract bool?
Is this function an abstract method?
read / writeoverride
isConst bool?
Is this function const?
read / writeoverride
isStatic bool?
Is this function static?
read / writeoverride
json Map<String, dynamic>?
read / writeinherited
location SourceLocation?
The location of this function in the source code.
read / writeoverride
name String?
The name of this function.
read / writeoverride
owner ↔ dynamic
The owner of this function, which can be a Library, Class, or a Function.
read / writeoverride
runtimeType Type
A representation of the runtime type of the object.
signature InstanceRef?
The signature of the function.
read / write
size int?
The size of this object in the heap.
read / writeinherited
type String


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