$declaration constant
BridgeClassDef
const $declaration
Implementation
static const $declaration = BridgeClassDef(
BridgeClassType(BridgeTypeRef(CoreTypes.map),
generics: {'K': BridgeGenericParam(), 'V': BridgeGenericParam()}),
constructors: {},
methods: {
'[]': BridgeMethodDef(
BridgeFunctionDef(params: [
BridgeParameter(
'key', BridgeTypeAnnotation(BridgeTypeRef.ref('K')), false),
], returns: BridgeTypeAnnotation(BridgeTypeRef.ref('V'))),
isStatic: false),
'[]=': BridgeMethodDef(
BridgeFunctionDef(params: [
BridgeParameter(
'key', BridgeTypeAnnotation(BridgeTypeRef.ref('K')), false),
BridgeParameter(
'value', BridgeTypeAnnotation(BridgeTypeRef.ref('V')), false),
], returns: BridgeTypeAnnotation(BridgeTypeRef.ref('V'))),
isStatic: false),
'length': BridgeMethodDef(
BridgeFunctionDef(
params: [],
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int))),
isStatic: false),
'cast': BridgeMethodDef(
BridgeFunctionDef(
generics: {
'RK': BridgeGenericParam(),
'RV': BridgeGenericParam()
},
params: [],
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.map,
[BridgeTypeRef.ref('RK'), BridgeTypeRef.ref('RV')]))),
isStatic: false),
'addAll': BridgeMethodDef(
BridgeFunctionDef(
params: [
BridgeParameter(
'other',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.map,
[BridgeTypeRef.ref('K'), BridgeTypeRef.ref('V')])),
false),
],
returns:
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType))),
isStatic: false),
'containsKey': BridgeMethodDef(
BridgeFunctionDef(params: [
BridgeParameter(
'key',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.object),
nullable: true),
false),
], returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool))),
isStatic: false,
),
'remove': BridgeMethodDef(
BridgeFunctionDef(params: [
BridgeParameter(
'key',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.object),
nullable: true),
false),
], returns: BridgeTypeAnnotation(BridgeTypeRef.ref('V'))),
isStatic: false),
},
getters: {
'entries': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.iterable)))),
'isEmpty': BridgeMethodDef(
BridgeFunctionDef(
params: [],
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool))),
isStatic: false),
'isNotEmpty': BridgeMethodDef(
BridgeFunctionDef(
params: [],
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool))),
isStatic: false),
},
setters: {},
fields: {},
wrap: true);