$declaration constant

BridgeClassDef const $declaration

Implementation

static const $declaration = BridgeClassDef(
    BridgeClassType(BridgeTypeRef(CoreTypes.num), isAbstract: true),
    constructors: {},
    methods: {
      // Other num methods are defined in builtins.dart
      // since they have special requirements (return types dependent on
      // argument types, etc.)
      'parse': BridgeMethodDef(
          BridgeFunctionDef(
              returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.num)),
              params: [
                BridgeParameter(
                    'source',
                    BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string)),
                    false),
                BridgeParameter(
                    'onError',
                    BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function),
                        nullable: true),
                    true),
              ]),
          isStatic: true),
      'tryParse': BridgeMethodDef(
          BridgeFunctionDef(
              returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.num),
                  nullable: true),
              params: [
                BridgeParameter(
                    'source',
                    BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string)),
                    false),
              ]),
          isStatic: true),

      'toInt': BridgeMethodDef(
          BridgeFunctionDef(
              returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int),
                  nullable: true),
              params: []),
          isStatic: false),
      'ceil': BridgeMethodDef(
          BridgeFunctionDef(
              returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int),
                  nullable: true),
              params: []),
          isStatic: false),
    },
    getters: {},
    setters: {},
    fields: {},
    wrap: true);