$declaration constant

BridgeClassDef const $declaration

Bridge class definition for $Converter.

Implementation

static const $declaration = BridgeClassDef(BridgeClassType($type),
    constructors: {
      '': BridgeConstructorDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation($type), params: [], namedParams: []))
    },
    methods: {
      'bind': BridgeMethodDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.stream)),
          params: [
            BridgeParameter('stream',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.stream)), false)
          ],
          namedParams: []))
    },
    getters: {
      'startChunkedConversion': BridgeMethodDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(AsyncTypes.streamSink)),
          params: [
            BridgeParameter(
                'sink',
                BridgeTypeAnnotation(BridgeTypeRef(AsyncTypes.streamSink)),
                false)
          ],
          namedParams: []))
    },
    setters: {},
    fields: {},
    wrap: true);