SharpBorderRadius.horizontal constructor

const SharpBorderRadius.horizontal({
  1. SharpRadius left = SharpRadius.zero,
  2. SharpRadius right = SharpRadius.zero,
})

Creates a horizontally symmetrical border radius where the left and right sides of the rectangle have the same radii.

Implementation

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