scale method

EdgeInsets scale(
  1. double factor
)

Returns a new EdgeInsets with the dimensions scaled by the given factor.

Implementation

EdgeInsets scale(double factor) {
  return EdgeInsets.fromLTRB(
    left * factor,
    top * factor,
    right * factor,
    bottom * factor,
  );
}