$declaration constant
BridgeClassDef
const $declaration
Compile-time bridge declaration of RegExp
Implementation
static const $declaration = BridgeClassDef(
BridgeClassType($type, isAbstract: true, $extends: $Pattern.$type),
constructors: {
'': BridgeConstructorDef(
BridgeFunctionDef(returns: BridgeTypeAnnotation($type), params: [
BridgeParameter('source',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string)), false),
], namedParams: [
BridgeParameter('multiLine',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool)), false),
BridgeParameter('caseSensitive',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool)), false),
BridgeParameter('unicode',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool)), false),
BridgeParameter('dotAll',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool)), false),
]))
},
methods: {
'hasMatch': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool)),
params: [
BridgeParameter('input',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string)), false),
])),
'firstMatch': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation($RegExpMatch.$type, nullable: true),
params: [
BridgeParameter('input',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string)), false),
])),
'allMatches': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(
BridgeTypeRef(CoreTypes.iterable, [$RegExpMatch.$type]),
nullable: true),
params: [
BridgeParameter('input',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string)), false),
BridgeParameter('start',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.int)), true),
])),
'stringMatch': BridgeMethodDef(BridgeFunctionDef(
returns: BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string),
nullable: true),
params: [
BridgeParameter('input',
BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.string)), false),
]))
},
wrap: true);