ImageParams class

Constructors

ImageParams({required String path, required Size size, double imagePositionFactor = 0.4, double repeatCountPerLevel = 0.5, Side side = Side.BOTH})

Properties

hashCode int
The hash code for this object.
no setterinherited
imagePositionFactor double
It determines how close the image could get to the center of the page. Affects only for BG images. Should be between 0 and 1. 0 means it wont be visible, 0.5 means it could reach from 0 to 0.25width on the left side and from 0.75 to 1width on the right side of the path, 1 means, image could reach the center of the page. Default is 0.6
final
path String
final
repeatCountPerLevel double
It determines how often this image could repeat in the same level. Affects only for BG images. 1 means it appear once per level. 2 means it appear twice per level. 0.5 means it appear once every two levels. TIP: Try to assign a value which is a factor of LevelMapParams.levelCount. It helps to equally distribute the images.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
side Side
If an image need to be painted only on left or right to the path, set this parameter.
final
size Size
final

Methods

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