Scalar constructor
A Scalar provides an opportunity to scale axis-based double data.
Default constructor takes named paramters per axis. Use Scalar.xy
as a shortcut to only provide positional double values.
Scalar.xy(5)is equivalent toScalar(horizontal: 5, vertical: 5)and stillconst.
For use with Foils
Pointer movement data may be scaled independently before they translate to gradient "twinkling" transformation (offset/translation).
Scale up the motion factor by providing Scalar.horizontal or
Scalar.vertical a value greater than 1.0,
or scale down the influence by providing 0 <= scalar <= 1.0.

For use with Rolls
In the case of a Roll, a Scalar object provides a means to direct
animation of the gradient if isAnimated is true. Also see the
min and max values.
Implementation
const Scalar({this.horizontal = 1.0, this.vertical = 1.0});