ContentMatchOptions class

Constructors

ContentMatchOptions({required String pattern})
Returns a new ContentMatchOptions instance.

Properties

hashCode int
The hash code for this object.
no setteroverride
pattern String
Java style regex pattern. Do not include the typical / at start or end of regex in some languages. Given an example your code is: 12345 the pattern to extract match looks like code is: (\\d{6}). This will return an array of matches with the first matching the entire pattern and the subsequent matching the groups: ['code is: 123456', '123456'] See https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html for more information of available patterns.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromJson(dynamic value) ContentMatchOptions?
Returns a new ContentMatchOptions instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<ContentMatchOptions>
mapFromJson(dynamic json) Map<String, ContentMatchOptions>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<ContentMatchOptions>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.