CornerSpec.squaredWith constructor

const CornerSpec.squaredWith(
  1. {Corner topLeft = Corner.SQUARE,
  2. Corner topRight = Corner.SQUARE,
  3. Corner bottomRight = Corner.SQUARE,
  4. Corner bottomLeft = Corner.SQUARE,
  5. BorderRadiusGeometry? radius}
)

A CornerSpec that accepts any Corner for each field, but defaults them all to Corner.SQUARE.

CornerSpec.SQUARED is a const CornerSpec available with all four corners initialized to Corner.SQUARE.

Implementation

const CornerSpec.squaredWith({
  this.topLeft = Corner.SQUARE,
  this.topRight = Corner.SQUARE,
  this.bottomRight = Corner.SQUARE,
  this.bottomLeft = Corner.SQUARE,
  this.radius,
});