LiveActivityImageFromAsset class
Load an image from Flutter asset.
Image need to have small resolution to be displayed on live activity widget / dynamic island.
You can use the resizeFactor
to resize the image (1 is the original size).
- Inheritance
-
- Object
- LiveActivityImage
- LiveActivityImageFromAsset
Constructors
- LiveActivityImageFromAsset(String path, {num resizeFactor = 1})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- path → String
-
Path to the image asset.
final
- resizeFactor ↔ num
-
You can use the
resizeFactor
to resize the image (1 is the original size).getter/setter pairinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
loadImage(
) → Future< Uint8List> -
Load the image.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited