prefix property
String
get
prefix
Path prefix to the project's directory with images.
This path is relative to the project's root, and the default prefix is "assets/images/". If necessary, you may change this prefix at any time. A prefix must be a valid directory name and end with "/" (empty prefix is also allowed).
The prefix is not part of the keys of the images stored in this cache.
For example, if you load image player.png, then it will be searched at
location prefix + "player.png" but stored in the cache under the key
"player.png".
Implementation
String get prefix => _prefix;
set
prefix
(String value)
Implementation
set prefix(String value) {
assert(
value.isEmpty || value.endsWith('/'),
'Prefix must be empty or end with a "/"',
);
_prefix = value;
}