BorderRadius.only constructor Null safety

const BorderRadius.only(
  1. {Radius topLeft = Radius.zero,
  2. Radius topRight = Radius.zero,
  3. Radius bottomLeft = Radius.zero,
  4. Radius bottomRight = Radius.zero}
)

Creates a border radius with only the given non-zero values. The other corners will be right angles.

Implementation

const BorderRadius.only({
  this.topLeft = Radius.zero,
  this.topRight = Radius.zero,
  this.bottomLeft = Radius.zero,
  this.bottomRight = Radius.zero,
});