SharpBorderRadius.only constructor

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

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

Implementation

const SharpBorderRadius.only({
  this.topLeft = SharpRadius.zero,
  this.topRight = SharpRadius.zero,
  this.bottomLeft = SharpRadius.zero,
  this.bottomRight = SharpRadius.zero,
}) : super.only(
        topLeft: topLeft,
        bottomRight: topRight,
        topRight: topRight,
        bottomLeft: bottomLeft,
      );