$declaration constant
BridgeClassDef
const $declaration
Compile-time class definition for $RangeError
Implementation
static const $declaration = BridgeClassDef(
BridgeClassType(BridgeTypeRef(CoreTypes.rangeError)),
constructors: {
'': BridgeConstructorDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.rangeError)),
params: [
BridgeParameter(
'message',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.dynamic),
nullable: true),
true),
])),
'value': BridgeConstructorDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.rangeError)),
params: [
BridgeParameter(
'value',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.num),
),
false),
BridgeParameter(
'name',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string),
nullable: true),
true),
BridgeParameter(
'message',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string),
nullable: true),
true),
])),
'range': BridgeConstructorDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.rangeError)),
params: [
BridgeParameter(
'invalidValue',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.object),
),
false),
BridgeParameter(
'minValue',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.object),
nullable: true),
false),
BridgeParameter(
'maxValue',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.object),
nullable: true),
false),
BridgeParameter(
'name',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string),
nullable: true),
true),
BridgeParameter(
'message',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string),
nullable: true),
true),
])),
},
methods: {
'checkValidIndex': BridgeMethodDef(
BridgeFunctionDef(params: [
BridgeParameter(
'index',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.int),
),
false),
BridgeParameter(
'indexable',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.dynamic),
),
false),
BridgeParameter(
'name',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string),
nullable: true),
true),
BridgeParameter(
'length',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string),
nullable: true),
true),
BridgeParameter(
'message',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string),
nullable: true),
true),
], returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int))),
isStatic: true),
'checkValidRange': BridgeMethodDef(
BridgeFunctionDef(params: [
BridgeParameter(
'start',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.int),
),
false),
BridgeParameter(
'end',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int),
nullable: true),
false),
BridgeParameter(
'length',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.int),
),
false),
BridgeParameter(
'startName',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string),
nullable: true),
true),
BridgeParameter(
'endName',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string),
nullable: true),
true),
BridgeParameter(
'message',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string),
nullable: true),
true),
], returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int))),
isStatic: true),
'checkNotNegative': BridgeMethodDef(
BridgeFunctionDef(params: [
BridgeParameter(
'value',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.num),
),
false),
BridgeParameter(
'name',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string),
nullable: true),
true),
BridgeParameter(
'message',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string),
nullable: true),
true),
], returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.num))),
isStatic: true),
},
getters: {
'message': 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),
'name': BridgeMethodDef(
BridgeFunctionDef(
params: [],
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.object),
nullable: true)),
isStatic: false),
},
setters: {},
fields: {},
wrap: true);