BridgeClassDef class
A bridged class definition, used to inform the dart_eval compiler of a class's structure, properties, and methods when it is defined outside of dart_eval.
You must specify either bridge or wrap as true (but not both) depending on the runtime implementation: Use bridge if you're using the $Bridge mixin to create a bridge class, and wrap if the class manually implements $Instance (i.e. a wrapper). You can learn about the difference between these on the wiki.
- Implemented types
- Annotations
-
- @JsonSerializable()
Constructors
-
BridgeClassDef(BridgeClassType type, {required Map<
String, BridgeConstructorDef> constructors, Map<String, BridgeMethodDef> methods = const {}, Map<String, BridgeMethodDef> getters = const {}, Map<String, BridgeMethodDef> setters = const {}, Map<String, BridgeFieldDef> fields = const {}, bool bridge = false, bool wrap = false}) -
const
-
BridgeClassDef.fromJson(Map<
String, dynamic> json) -
Connect the generated
_$BridgeClassDeclarationFromJson
function to thefromJson
factory.factory
Properties
- bridge → bool
-
final
-
constructors
→ Map<
String, BridgeConstructorDef> -
final
-
fields
→ Map<
String, BridgeFieldDef> -
final
-
getters
→ Map<
String, BridgeMethodDef> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
methods
→ Map<
String, BridgeMethodDef> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
setters
→ Map<
String, BridgeMethodDef> -
final
- type → BridgeClassType
-
final
- wrap → bool
-
final
Methods
-
copyWith(
{BridgeClassType? type}) → BridgeClassDef -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Connect the generated
_$BridgeClassDeclarationToJson
function to thetoJson
method. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited