scaleHorizontally method

Matrix4Transform scaleHorizontally(
  1. double factor, {
  2. Offset? origin,
})

Scales by factor horizontally. Keeps the same vertical scale. Gets bigger for >1. Smaller for <1. Same size for 1 (and passing null is the same as passing 1). No size for 0.

Implementation

Matrix4Transform scaleHorizontally(double factor, {Offset? origin}) =>
    scaleBy(x: factor, origin: origin);