UrlBuilder class

Constructors

UrlBuilder(String domain, {bool useHttps = true, String? signKey, bool includeLibraryParam = true})

Properties

domain String
final
hashCode int
The hash code for this object.
no setterinherited
includeLibraryParam bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signKey String?
getter/setter pair
useHttps bool
final

Methods

createSrcSet(String path, {Map<String, String>? params, int begin = minWidth, int end = maxWidth, int tol = srcsetWidthTolerance, bool disableVariableQuality = false, Iterable<int>? targets}) String
Create a srcset given a path and a map of params.
createSrcSetDPR(String path, Map<String, String> params, bool disableVariableQuality) String
createSrcSetPairs(String path, Map<String, String> params, Iterable<int> targets) String
createURL(String path, [Map<String, String>? params]) String
isDpr(Map<String, String> params) bool
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

Static Properties

domainRegex String
final
dprQualities List<int>
final
srcsetTargetWidths List<int>
final
sss List<int>
final
targetRatios List<int>
final
version String
final

Static Methods

computeTargetWidths(double begin, double end, double tol) → BuiltList<int>
Create an ArrayList of integer target widths.
targetWidths(int begin, int end, int tol) → BuiltList<int>

Constants

maxWidth → const int
minWidth → const int
srcsetWidthTolerance → const int