BridgeClassDef constructor

const BridgeClassDef(
  1. BridgeClassType type, {
  2. required Map<String, BridgeConstructorDef> constructors,
  3. Map<String, BridgeMethodDef> methods = const {},
  4. Map<String, BridgeMethodDef> getters = const {},
  5. Map<String, BridgeMethodDef> setters = const {},
  6. Map<String, BridgeFieldDef> fields = const {},
  7. bool bridge = false,
  8. bool wrap = false,
})

Implementation

const BridgeClassDef(
  this.type, {
  required this.constructors,
  this.methods = const {},
  this.getters = const {},
  this.setters = const {},
  this.fields = const {},
  this.bridge = false,
  this.wrap = false,
}) : assert(
       bridge != wrap,
       'You must specify either bridge or wrap as true (but not both)',
     );