$declaration constant

BridgeClassDef const $declaration

Implementation

static const $declaration = BridgeClassDef(
    BridgeClassType(BridgeTypeRef(CoreTypes.comparable),
        isAbstract: true, generics: {'T': BridgeGenericParam()}),
    constructors: {},
    methods: {
      'compareTo': BridgeMethodDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int)),
          params: [
            BridgeParameter(
                'other', BridgeTypeAnnotation(BridgeTypeRef.ref('T')), false)
          ]))
    },
    wrap: true);