CornerSpec constructor

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

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

Not providing an optional radius, a Shape will defer to its own Shape.radius, defaulting to _RADIUS == 10.0.

See CornerSpec.squaredWith & CornerSpec.beveledWith for const constructors that default their fields differently.

CornerSpec.ROUNDED is a const CornerSpec available with all four corners initialized to Corner.ROUND.

Implementation

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