LiveActivityImageFromMemory class
Uses an already loaded image.
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).
imageData must contain a valid image
imageName must not be empty and can be freely choosen but it has to be unique
- Inheritance
-
- Object
- LiveActivityImage
- LiveActivityImageFromMemory
Constructors
- LiveActivityImageFromMemory(Uint8List imageData, String imageName, {num resizeFactor = 1})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageData → Uint8List
-
final
- imageName → String
-
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