helpers/all library

Constants

defaultSvgRasterSize → const int
Default raster size (in logical pixels, square) used when an SVG asset is rasterized to PNG bytes for native consumption.
svgIgnoredKeys → const Set<String>
Keys that look image-related but must never be rasterized.
svgImageDataKeys → const Map<String, String>
Every payload key that may reference a Flutter asset SVG, paired with how the rasterized bytes are attached.
svgListImageKeys → const Set<String>
Image keys whose values are lists rather than a single asset string.

Functions

clearSvgRasterCache() → void
Clears the in-memory rasterized SVG cache.
isSvgAsset(String? value) bool
Returns true when value points to a Flutter asset SVG.
rasterizeSvgAsset(String assetPath, {int size = defaultSvgRasterSize}) Future<Uint8List?>
Rasterizes the Flutter asset SVG at assetPath into PNG bytes.
resolveSvgInPayload(dynamic node, {int size = defaultSvgRasterSize}) Future
Recursively walks a method-channel node (maps/lists), rasterizing any Flutter asset SVG referenced by an image-bearing key (see svgImageDataKeys) and attaching the PNG bytes to a sibling <key>Data key.