Parser class

Definition of a parser.

Constructors

Parser({required String id, required List<String> parent, required ParserType type, dynamic selector = "", bool isPrivate = false, bool multiple = false, AbstractOptional? optional})
Parser.fromMap(Map<String, dynamic> map)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
ID to store value of result.
getter/setter pair
isPrivate bool
Keep result of this parser private, just for internal use.
getter/setter pair
multiple bool
If result can contain multiple results as a List. Default is false.
getter/setter pair
optional AbstractOptional?
Optional parameters.
getter/setter pair
parent List<String>
List of parent IDs to tell parser when to trigger, base value is _root.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selector ↔ dynamic
CSS Selector for this parser.
getter/setter pair
type ParserType
Parser type.
getter/setter pair

Methods

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

Operators

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