$declaration constant

BridgeClassDef const $declaration

Implementation

static const $declaration = BridgeClassDef(
    BridgeClassType($type,
        isAbstract: true,
        generics: {'S': BridgeGenericParam(), 'T': BridgeGenericParam()}),
    constructors: {
      '': BridgeConstructorDef(
          BridgeFunctionDef(returns: BridgeTypeAnnotation($type))),
    },
    methods: {
      'bind': BridgeMethodDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.stream, [BridgeTypeRef.ref('T')])),
          params: [
            BridgeParameter(
                'stream',
                BridgeTypeAnnotation(BridgeTypeRef(
                    CoreTypes.stream, [BridgeTypeRef.ref('S')])),
                false)
          ])),
    },
    getters: {},
    setters: {},
    fields: {},
    wrap: true);