$declaration constant
BridgeClassDef
const $declaration
Implementation
static const $declaration = BridgeClassDef(
BridgeClassType($type,
$extends: BridgeTypeRef(CoreTypes.iterable),
generics: {'E': BridgeGenericParam()}),
constructors: {
'filled': BridgeConstructorDef(
BridgeFunctionDef(returns: BridgeTypeAnnotation($type), params: [
BridgeParameter(
'length',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false),
BridgeParameter(
'fill',
BridgeTypeAnnotation(BridgeTypeRef.ref('E', []), nullable: false),
false)
], namedParams: [
BridgeParameter(
'growable',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, []),
nullable: false),
true)
], generics: {
'E': BridgeGenericParam()
}),
isFactory: true,
),
'empty': BridgeConstructorDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation($type),
params: [],
namedParams: [
BridgeParameter(
'growable',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, []),
nullable: false),
true)
],
generics: {
'E': BridgeGenericParam()
}),
isFactory: true,
),
'from': BridgeConstructorDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation($type),
params: [
BridgeParameter(
'elements',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.iterable, [BridgeTypeRef.ref('E')]),
nullable: false),
false)
],
namedParams: [
BridgeParameter(
'growable',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, []),
nullable: false),
true)
],
generics: {'E': BridgeGenericParam()},
),
isFactory: true,
),
'of': BridgeConstructorDef(
BridgeFunctionDef(returns: BridgeTypeAnnotation($type), params: [
BridgeParameter(
'elements',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.iterable, [
BridgeTypeRef.ref('E', []),
]),
nullable: false),
false)
], namedParams: [
BridgeParameter(
'growable',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, []),
nullable: false),
true)
], generics: {
'E': BridgeGenericParam()
}),
isFactory: true,
),
'generate': BridgeConstructorDef(
BridgeFunctionDef(returns: BridgeTypeAnnotation($type), params: [
BridgeParameter(
'length',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false),
BridgeParameter(
'generator',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function, []),
nullable: false),
false)
], namedParams: [
BridgeParameter(
'growable',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, []),
nullable: false),
true)
], generics: {
'E': BridgeGenericParam()
}),
isFactory: true,
),
'unmodifiable': BridgeConstructorDef(
BridgeFunctionDef(returns: BridgeTypeAnnotation($type), params: [
BridgeParameter(
'elements',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.iterable, []),
nullable: false),
false)
], namedParams: [], generics: {
'E': BridgeGenericParam()
}),
isFactory: true,
)
},
fields: {},
methods: {
'castFrom': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.list, [
BridgeTypeRef.ref('T', []),
]),
nullable: false),
params: [
BridgeParameter(
'source',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.list, [
BridgeTypeRef.ref('S', []),
]),
nullable: false),
false)
],
namedParams: [],
generics: {
'S': BridgeGenericParam(),
'T': BridgeGenericParam(),
}),
isStatic: true),
'copyRange': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [
BridgeParameter(
'target',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.list, [
BridgeTypeRef.ref('T', []),
]),
nullable: false),
false),
BridgeParameter(
'at',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false),
BridgeParameter(
'source',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.list, [
BridgeTypeRef.ref('T', []),
]),
nullable: false),
false),
BridgeParameter(
'start',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: true),
true),
BridgeParameter(
'end',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: true),
true)
],
namedParams: [],
generics: {
'T': BridgeGenericParam(),
}),
isStatic: true),
'writeIterable': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [
BridgeParameter(
'target',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.list, [
BridgeTypeRef.ref('T', []),
]),
nullable: false),
false),
BridgeParameter(
'at',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false),
BridgeParameter(
'source',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.iterable, [
BridgeTypeRef.ref('T', []),
]),
nullable: false),
false)
],
namedParams: [],
generics: {
'T': BridgeGenericParam(),
}),
isStatic: true),
'cast': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.list, [
BridgeTypeRef.ref('R', []),
]),
nullable: false),
params: [],
namedParams: [],
generics: {'R': BridgeGenericParam()},
),
isStatic: false),
'[]': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
nullable: false),
params: [
BridgeParameter(
'index',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false)
],
namedParams: [],
),
isStatic: false),
'[]=': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [
BridgeParameter(
'index',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false),
BridgeParameter(
'value',
BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
nullable: false),
false)
],
namedParams: [],
),
isStatic: false),
'add': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [
BridgeParameter(
'value',
BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
nullable: false),
false)
],
namedParams: [],
),
isStatic: false),
'addAll': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [
BridgeParameter(
'iterable',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.iterable, [
BridgeTypeRef.ref('E', []),
]),
nullable: false),
false)
],
namedParams: [],
),
isStatic: false),
'sort': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [
BridgeParameter(
'compare',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function, []),
nullable: true),
true)
],
namedParams: [],
),
isStatic: false),
'shuffle': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [
BridgeParameter(
'random',
BridgeTypeAnnotation(BridgeTypeRef(MathTypes.random, []),
nullable: true),
true)
],
namedParams: [],
),
isStatic: false),
'indexOf': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
params: [
BridgeParameter(
'element',
BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
nullable: false),
false),
BridgeParameter(
'start',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
true)
],
namedParams: [],
),
isStatic: false),
'indexWhere': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
params: [
BridgeParameter(
'test',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, []),
nullable: false),
false),
BridgeParameter(
'start',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
true)
],
namedParams: [],
),
isStatic: false),
'lastIndexWhere': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
params: [
BridgeParameter(
'test',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, []),
nullable: false),
false),
BridgeParameter(
'start',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: true),
true)
],
namedParams: [],
),
isStatic: false),
'lastIndexOf': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
params: [
BridgeParameter(
'element',
BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
nullable: false),
false),
BridgeParameter(
'start',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: true),
true)
],
namedParams: [],
),
isStatic: false),
'clear': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [],
namedParams: [],
),
isStatic: false),
'insert': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [
BridgeParameter(
'index',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false),
BridgeParameter(
'element',
BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
nullable: false),
false)
],
namedParams: [],
),
isStatic: false),
'insertAll': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [
BridgeParameter(
'index',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false),
BridgeParameter(
'iterable',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.iterable, [
BridgeTypeRef.ref('E', []),
]),
nullable: false),
false)
],
namedParams: [],
),
isStatic: false),
'setAll': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [
BridgeParameter(
'index',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false),
BridgeParameter(
'iterable',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.iterable, [
BridgeTypeRef.ref('E', []),
]),
nullable: false),
false)
],
namedParams: [],
),
isStatic: false),
'remove': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, []),
nullable: false),
params: [
BridgeParameter(
'value',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.object, []),
nullable: true),
false)
],
namedParams: [],
),
isStatic: false),
'removeAt': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
nullable: false),
params: [
BridgeParameter(
'index',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false)
],
namedParams: [],
),
isStatic: false),
'removeLast': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
nullable: false),
params: [],
namedParams: [],
),
isStatic: false),
'removeWhere': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [
BridgeParameter(
'test',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function, []),
nullable: false),
false)
],
namedParams: [],
),
isStatic: false),
'retainWhere': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [
BridgeParameter(
'test',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.function, []),
nullable: false),
false)
],
namedParams: [],
),
isStatic: false),
'+': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.list, [
BridgeTypeRef.ref('E', []),
]),
nullable: false),
params: [
BridgeParameter(
'other',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.list, [
BridgeTypeRef.ref('E', []),
]),
nullable: false),
false)
],
namedParams: [],
),
isStatic: false),
'sublist': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.list, [
BridgeTypeRef.ref('E', []),
]),
nullable: false),
params: [
BridgeParameter(
'start',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false),
BridgeParameter(
'end',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: true),
true)
],
namedParams: [],
),
isStatic: false),
'getRange': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.iterable, [
BridgeTypeRef.ref('E', []),
]),
nullable: false),
params: [
BridgeParameter(
'start',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false),
BridgeParameter(
'end',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false)
],
namedParams: [],
),
isStatic: false),
'setRange': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [
BridgeParameter(
'start',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false),
BridgeParameter(
'end',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false),
BridgeParameter(
'iterable',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.iterable, [
BridgeTypeRef.ref('E', []),
]),
nullable: false),
false),
BridgeParameter(
'skipCount',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
true)
],
namedParams: [],
),
isStatic: false),
'removeRange': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [
BridgeParameter(
'start',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false),
BridgeParameter(
'end',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false)
],
namedParams: [],
),
isStatic: false),
'fillRange': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [
BridgeParameter(
'start',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false),
BridgeParameter(
'end',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false),
BridgeParameter(
'fillValue',
BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
nullable: true),
true)
],
namedParams: [],
),
isStatic: false),
'replaceRange': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [
BridgeParameter(
'start',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false),
BridgeParameter(
'end',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false),
BridgeParameter(
'replacements',
BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.iterable, [
BridgeTypeRef.ref('E', []),
]),
nullable: false),
false)
],
namedParams: [],
),
isStatic: false),
'asMap': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.map, [
BridgeTypeRef(CoreTypes.int, []),
BridgeTypeRef.ref('E', []),
]),
nullable: false),
params: [],
namedParams: [],
),
isStatic: false),
},
getters: {
'length': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
params: [],
namedParams: [],
),
isStatic: false),
'reversed': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.iterable, [
BridgeTypeRef.ref('E', []),
]),
nullable: false),
params: [],
namedParams: [],
),
isStatic: false),
},
setters: {
'first': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [
BridgeParameter(
'value',
BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
nullable: false),
false)
],
namedParams: [],
),
isStatic: false),
'last': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [
BridgeParameter(
'value',
BridgeTypeAnnotation(BridgeTypeRef.ref('E', []),
nullable: false),
false)
],
namedParams: [],
),
isStatic: false),
'length': BridgeMethodDef(
BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.voidType, []),
nullable: false),
params: [
BridgeParameter(
'newLength',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int, []),
nullable: false),
false)
],
namedParams: [],
),
isStatic: false),
},
bridge: false,
wrap: true,
);