UrlBuilder class
Constructors
- UrlBuilder(String domain, {bool useHttps = true, String? signKey, bool includeLibraryParam = true})
Properties
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 ofparams
. -
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>