PackageLoader class

Constructors

PackageLoader(String? _package, [AssetBundle? _bundle])

Properties

asBundle bool
no setter
bundle AssetBundle?
no setter
hashCode int
The hash code for this object.
no setterinherited
package String?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

load(String key) Future<ByteData>
loadAssetImage(String assetName) AssetImage
loadFont(String family, String key) Future<void>
loadImage(String name, {Key? key, double? scale, String? semanticLabel, bool excludeFromSemantics = false, double? width, double? height, Color? color, BlendMode? colorBlendMode, BoxFit? fit, Alignment alignment = Alignment.center, ImageRepeat repeat = ImageRepeat.noRepeat, Rect? centerSlice, bool matchTextDirection = false, bool gaplessPlayback = false, FilterQuality filterQuality = FilterQuality.low}) Image
loadJson(String key, {bool cache = true}) Future
loadString(String key, {bool cache = true}) Future<String>
loadStructuredData<T>(String key, Future<T> parser(String value)) Future<T>
loadSvg(String assetName, {Key? key, bool matchTextDirection = false, double? width, double? height, BoxFit fit = BoxFit.contain, Alignment alignment = Alignment.center, bool allowDrawingOutsideViewBox = false, WidgetBuilder? placeholderBuilder, Color? color, BlendMode colorBlendMode = BlendMode.srcIn, String? semanticsLabel, bool excludeFromSemantics = false}) → SvgPicture
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(String key) String
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

main(String pkg) → void