UrlBuilder class Null safety

Constructors

UrlBuilder(String domain, [bool useHttps = true, String? signKey, bool includeLibraryParam = true])

Properties

domain String
final
hashCode int
The hash code for this object.
read-onlyinherited
includeLibraryParam bool
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
signKey String?
read / write
useHttps bool
read / write

Methods

createSrcSet(String path, {Map<String, String>? params, int begin = MIN_WIDTH, int end = MAX_WIDTH, int tol = SRCSET_WIDTH_TOLERANCE, 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 non-existent 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

DOMAIN_REGEX String
final
DPR_QUALITIES List<int>
final
SRCSET_TARGET_WIDTHS List<int>
final
sss List<int>
final
TARGET_RATIOS List<int>
final
VERSION String
final

Static Methods

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

Constants

MAX_WIDTH → const int
8192
MIN_WIDTH → const int
100
SRCSET_WIDTH_TOLERANCE → const int
8