Optional class

Constructors

Optional.any({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, List<TransformationType>? transformationOrder})
Named constructor for any optional parameters
factory
Optional.http({required String url, required HttpMethod method, Map<String, Object>? headers, UserAgentDevice? userAgent, HttpResponseType? responseType, Object? payLoad, HttpPayload? payloadType, bool usePassedProxy = false, bool cacheResponse = false, 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, List<TransformationType>? transformationOrder})
Named constructor for HTTP-specific optional parameters
factory
Optional.sibling({required SiblingDirection direction, List<String>? where, 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, List<TransformationType>? transformationOrder})
Named constructor for Sibling-specific optional parameters
factory
Optional.staticVal({String? strVal, Map<String, Object>? mapVal, 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, List<TransformationType>? transformationOrder})
Named constructor for StaticVal-specific optional parameters
factory
Optional.strBetween({required String start, required String end, 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, List<TransformationType>? transformationOrder})
Named constructor for StrBetween-specific optional parameters
factory
Optional.table({String? keys, String? values, 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, List<TransformationType>? transformationOrder})
Named constructor for Table-specific optional parameters
factory

Properties

append String?
final
apply ApplyMethod?
final
cacheResponse bool
final
cropEnd int?
final
cropStart int?
final
end String?
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, Object>?
final
keys String?
final
mapVal Map<String, Object>?
final
match List<Object>?
final
method HttpMethod?
final
nth int?
final
payLoad Object?
final
payloadType HttpPayload?
final
prepend String?
final
regex String?
final
regexGroup int?
final
regexReplace String?
final
regexReplaceWith String?
final
replaceAll Map<String, String>?
final
replaceFirst Map<String, String>?
final
responseType HttpResponseType?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
siblingDirection SiblingDirection?
final
splitBy String?
final
start String?
final
strVal String?
final
transformationOrder List<TransformationType>?
The order in which transformations should be applied
final
url String?
final
usePassedProxy bool
final
userAgent UserAgentDevice?
final
values String?
final
where List<String>?
final

Methods

applyTransformations(Object data, bool debug) Object
Applies the relevant transformations based on the set fields and specified order
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