scale method

Creates a copy of this border, scaled by the factor t.

Typically this means scaling the width of the border's side, but it can also include scaling other artifacts of the border, e.g. the border radius of a RoundedRectangleBorder.

The t argument represents the multiplicand, or the position on the timeline for an interpolation from nothing to this, with 0.0 meaning that the object returned should be the nil variant of this object, 1.0 meaning that no change should be applied, returning this (or something equivalent to this), and other values meaning that the object should be multiplied by t. Negative values are allowed but may be meaningless (they correspond to extrapolating the interpolation from this object to nothing, and going beyond nothing)

Values for t are usually obtained from an Animation<double>, such as an AnimationController.

See also:

Implementation

@override
WxLinearBorder scale(double t) {
  return WxLinearBorder(
    start: start?.scale(t),
    end: end?.scale(t),
    top: top?.scale(t),
    bottom: bottom?.scale(t),
  );
}