AbstractOptional class
Constructors
-
AbstractOptional({ApplyMethod? apply, String? regex, int? regexGroup, String? regexReplace, String? regexReplaceWith, Map<
String, String> ? replaceFirst, Map<String, String> ? replaceAll, int? cropStart, int? cropEnd, String? prepend, String? append, List<Object> ? match, int? nth, String? splitBy, String? url, HttpMethod? method, Map<String, Object> ? headers, UserAgentDevice? userAgent, HttpResponseType? responseType, Object? payLoad, HttpPayload? payloadType, bool usePassedProxy = false, bool cacheResponse = false, String? start, String? end, List<String> ? where, SiblingDirection? siblingDirection, String? keys, String? values, String? strVal, Map<String, Object> ? mapVal})
Properties
- append ↔ String?
-
Append string to result.
getter/setter pair
- apply ↔ ApplyMethod?
-
Apply different functions to result.
getter/setter pair
- cacheResponse ↔ bool
-
Cache response?
getter/setter pair
- cropEnd ↔ int?
-
Crop result from end.
getter/setter pair
- cropStart ↔ int?
-
Crop result from start.
getter/setter pair
- end ↔ String?
-
End of a string.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
↔ Map<
String, Object> ? -
Add Custom Headers.
getter/setter pair
- keys ↔ String?
-
- ParserType.json. JSON Table keys path.
getter/setter pair -
mapVal
↔ Map<
String, Object> ? -
getter/setter pair
-
match
↔ List<
Object> ? -
Checks if result has match in predefined list.
getter/setter pair
- method ↔ HttpMethod?
-
HttpMethod as GET/POST.
getter/setter pair
- nth ↔ int?
-
Select nth result from list.
getter/setter pair
- payLoad ↔ Object?
-
For POST requests you can add custom payLoad.
getter/setter pair
- payloadType ↔ HttpPayload?
-
payLoad can be String or JSON.
getter/setter pair
- prepend ↔ String?
-
Prepend string to result.
getter/setter pair
- regex ↔ String?
-
Regex pattern.
getter/setter pair
- regexGroup ↔ int?
-
Match to group.
getter/setter pair
- regexReplace ↔ String?
-
Regex Replace pattern.
getter/setter pair
- regexReplaceWith ↔ String?
-
Replace with selected pattern.
getter/setter pair
-
replaceAll
↔ Map<
String, String> ? -
Map to find keys and replace all of them with values.
getter/setter pair
-
replaceFirst
↔ Map<
String, String> ? -
Map to find keys and replace them with values.
getter/setter pair
- responseType ↔ HttpResponseType?
-
responseType defines what to do once we grab data from URL.
if HttpResponseType.html then result will be converted to element.
if HttpResponseType.json then result will be decoded from JSON.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- siblingDirection ↔ SiblingDirection?
-
Sibling direction
previous
ornext
getter/setter pair - splitBy ↔ String?
-
Select nth result from list.
getter/setter pair
- start ↔ String?
-
- ParserType.strBetween. Start of a string.
getter/setter pair - strVal ↔ String?
-
- ParserType.staticVal.
getter/setter pair - url ↔ String?
-
Based on ParserType.
getter/setter pair
- usePassedProxy ↔ bool
-
Use passed proxy.
getter/setter pair
- userAgent ↔ UserAgentDevice?
-
Custom User Agent.
getter/setter pair
- values ↔ String?
-
JSON Table values path.
getter/setter pair
-
where
↔ List<
String> ? -
- ParserType.sibling. If where is passed, value of selector is matched, result is sibling of an element where match was found.
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