scale method

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

Scales by factor, keeping the aspect ratio. Gets bigger for >1. Smaller for <1. Same size for 1 (and passing null is the same as passing 1). No size for 0. Passing null is the same as passing 1.

Implementation

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