AnimatedImage.fitToSize

Scales and fits the image into a specific size.

class AnimatedImage
final
void
fitToSize
(
double maxWidth
,
double maxHeight
,
bool enlarge = false
)

Parameters

maxWidth double

The maximum width at which the image can fit into.

maxHeight double

The maximum height at which the image can fit into.

enlarge bool

A boolean determining whether scaling up is allowed or not.

Meta