$declaration constant

BridgeClassDef const $declaration

Compile-time bridge declaration of Match

Implementation

static const $declaration =
    BridgeClassDef(BridgeClassType($type, isAbstract: true),
        constructors: {},
        methods: {
          'group': BridgeMethodDef(BridgeFunctionDef(
            returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string),
                nullable: true),
            params: [
              BridgeParameter('group',
                  BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int)), false)
            ],
          )),
          'groups': BridgeMethodDef(BridgeFunctionDef(
            returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.list),
                nullable: false),
            params: [
              BridgeParameter(
                  'groupIndices',
                  BridgeTypeAnnotation(BridgeTypeRef(
                      CoreTypes.list, [BridgeTypeRef(CoreTypes.int)])),
                  false)
            ],
          )),
          '[]': BridgeMethodDef(BridgeFunctionDef(
            returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string),
                nullable: true),
            params: [
              BridgeParameter('group',
                  BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int)), false)
            ],
          )),
        },
        getters: {
          'input': BridgeMethodDef(BridgeFunctionDef(
              returns:
                  BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string)))),
          'start': BridgeMethodDef(BridgeFunctionDef(
              returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int)))),
          'end': BridgeMethodDef(BridgeFunctionDef(
              returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int)))),
          'groupCount': BridgeMethodDef(BridgeFunctionDef(
              returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int)))),
        },
        wrap: true);