$declaration constant

BridgeClassDef const $declaration

Implementation

static const $declaration = BridgeClassDef(
    BridgeClassType(BridgeTypeRef(CoreTypes.argumentError)),
    constructors: {
      '': BridgeConstructorDef(BridgeFunctionDef(
          returns:
              BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.argumentError)),
          params: [
            BridgeParameter(
                'message',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.object),
                    nullable: true),
                true)
          ])),
      'value': BridgeConstructorDef(BridgeFunctionDef(
          returns:
              BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.argumentError)),
          params: [
            BridgeParameter(
                'value',
                BridgeTypeAnnotation(
                  BridgeTypeRef(CoreTypes.object),
                ),
                false),
            BridgeParameter(
                'name',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string),
                    nullable: true),
                true),
            BridgeParameter(
                'message',
                BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string),
                    nullable: true),
                true),
          ])),
      'notNull': BridgeConstructorDef(BridgeFunctionDef(
          returns:
              BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.argumentError)),
          params: [
            BridgeParameter(
                'name',
                BridgeTypeAnnotation(
                  BridgeTypeRef(CoreTypes.string),
                ),
                false),
          ])),
    },
    methods: {},
    getters: {
      'message': BridgeMethodDef(
          BridgeFunctionDef(
              params: [],
              returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.object),
                  nullable: true)),
          isStatic: false),
      'name': BridgeMethodDef(
          BridgeFunctionDef(
              params: [],
              returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.object),
                  nullable: true)),
          isStatic: false),
      'invalidValue': BridgeMethodDef(
          BridgeFunctionDef(
              params: [],
              returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.object),
                  nullable: true)),
          isStatic: false),
    },
    setters: {},
    fields: {},
    wrap: true);