$declaration constant
BridgeClassDef
const $declaration
Compile-time bridge declaration of Pattern
Implementation
static const $declaration =
BridgeClassDef(BridgeClassType($type, isAbstract: true),
constructors: {},
methods: {
'allMatches': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.iterable, [$Match.$type])),
params: [
BridgeParameter(
'string',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string)),
false),
BridgeParameter('start',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int)), true),
])),
'matchAsPrefix': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation($Match.$type),
params: [
BridgeParameter(
'string',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string)),
false),
BridgeParameter('start',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int)), true),
])),
},
wrap: true);