BridgeFunctionDef class

A bridged function definition.

Available extensions
Annotations
  • @JsonSerializable.new(explicitToJson: true)

Constructors

BridgeFunctionDef({required BridgeTypeAnnotation returns, List<BridgeParameter> params = const [], List<BridgeParameter> namedParams = const [], Map<String, BridgeGenericParam> generics = const {}})
const
BridgeFunctionDef.fromJson(Map<String, dynamic> json)
Connect the generated _$BridgeFunctionDescriptorFromJson function to the fromJson factory.
factory

Properties

asConstructor → BridgeConstructorDef

Available on BridgeFunctionDef, provided by the BridgeFunctionDefExt extension

Extension to create a constructor from a function def
no setter
asFactory → BridgeConstructorDef

Available on BridgeFunctionDef, provided by the BridgeFunctionDefExt extension

Extension to create a factory constructor from a function def
no setter
asMethod → BridgeMethodDef

Available on BridgeFunctionDef, provided by the BridgeFunctionDefExt extension

Extension to create a method from a function def
no setter
asStaticMethod → BridgeMethodDef

Available on BridgeFunctionDef, provided by the BridgeFunctionDefExt extension

Extension to create a static method from a function def
no setter
generics → Map<String, BridgeGenericParam>
The generic type parameters of the function.
final
hashCode → int
The hash code for this object.
no setterinherited
namedParams → List<BridgeParameter>
The named parameters of the function.
final
params → List<BridgeParameter>
The positional parameters of the function.
final
returns → BridgeTypeAnnotation
The return type of the function.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Connect the generated _$BridgeFunctionDescriptorToJson function to the toJson method.
toString() → String
A string representation of this object.
inherited

Operators

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