ParallaxImage class

Specifications with a path to an image and how it should be drawn in relation to the device screen

Inheritance

Constructors

ParallaxImage(Image _image, {ImageRepeat? repeat, Alignment? alignment, LayerFill? fill, FilterQuality? filterQuality})

Properties

alignment Alignment
How to align the image in relation to the screen
finalinherited
fill LayerFill
How to fill the screen with the image, always proportionally scaled.
finalinherited
filterQuality FilterQuality
finalinherited
hashCode int
The hash code for this object.
no setterinherited
image Image
no setteroverride
repeat ImageRepeat
If and how the image should be repeated on the canvas
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update(double dt) → void
override

Operators

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

Static Methods

load(String path, {ImageRepeat repeat = ImageRepeat.repeatX, Alignment alignment = Alignment.bottomLeft, LayerFill fill = LayerFill.height, Images? images, FilterQuality? filterQuality}) Future<ParallaxImage>
Takes a path of an image, and optionally arguments for how the image should repeat (repeat), which edge it should align with (alignment), which axis it should fill the image on (fill) and images which is the image cache that should be used. If no image cache is set, the global flame cache is used.