Loader class abstract
The base class for load and transform resources to Dart & Flutter objects.
Properties
- cacheManager → CacheManager
-
The cache for Loader.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
localPath
→ Future<
String> -
\see clearCache
\see temporaryFolder
no setter
- log → Log
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- temporaryFolder → String
-
Overwrite this when a custom loader using a cache.
\see clearCache
no setter
Methods
-
clearCache(
) → Future< void> - Clear cache for this Loader. \see localPath \see temporaryFolder
-
exists(
String path) → Future< bool> -
\return
true
then file bypath
exists. -
existsInCache(
String path) → Future< bool> -
\return
true
then file bypath
exists in cache. -
loadFile(
String path) → Future< File?> -
\return File object by
path
. -
loadImageUi(
String path) → Future< Image?> -
\return ui.Image object by
path
. -
loadImageWidget(
String path, {double? width, double? height, BoxFit? fit, ImageErrorWidgetBuilder? errorBuilder}) → Future< Image?> -
\return widgets.Image object by
path
. -
loadString(
String path) → Future< String?> -
\return String by
path
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notExists(
String path) → Future< bool> - \see exists
-
toString(
) → String -
A string representation of this object.
override
-
warmUp(
String path) → Future< bool> -
\return
true
then file bypath
was found.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited