SvgAsyncAsset class Null safety
Widget with async load of SVG asset file
SVG files may need to be optimized before being stored in the cache folders. There are two cache folders:
- assets/cache, where most files should be put
- assets/cacheTintable, where only colorless files should be put As an example, vegetarian.svg is in both folders:
- the assets/cache version has different colors - no color should be applied
- the assets/cacheTintable version works with a color applied to it E.g. with https://jakearchibald.github.io/svgomg/ C.f. https://github.com/openfoodfacts/smooth-app/issues/52
Constructors
- SvgAsyncAsset(dynamic assetCacheHelper)
-
const
Properties
- assetCacheHelper → dynamic
-
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
createState(
) → dynamic -
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