$declaration constant

BridgeClassDef const $declaration

Implementation

static const $declaration = BridgeClassDef(
  BridgeClassType(
    _$type,
    $extends: BridgeTypeRef(CoreTypes.error, []),
    $implements: [
      BridgeTypeRef(CoreTypes.unsupportedError, []),
    ],
    isAbstract: false,
  ),
  constructors: {
    '': BridgeConstructorDef(
      BridgeFunctionDef(
        returns: BridgeTypeAnnotation(_$type),
        params: [
          BridgeParameter(
              'message',
              BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string, []),
                  nullable: true),
              true)
        ],
        namedParams: [],
      ),
      isFactory: false,
    )
  },
  fields: {
    'message': BridgeFieldDef(
        BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string, []),
            nullable: true),
        isStatic: false),
  },
  methods: {},
  getters: {},
  setters: {},
  bridge: false,
  wrap: true,
);