CircleBorder constructor Null safety

const CircleBorder(
  1. {BorderSide side = BorderSide.none,
  2. double eccentricity = 0.0}
)

Create a circle border.

The side argument must not be null.

Implementation

const CircleBorder({ super.side, this.eccentricity = 0.0 })
    : assert(side != null),
      assert(eccentricity != null),
      assert(eccentricity >= 0.0, 'The eccentricity argument $eccentricity is not greater than or equal to zero.'),
      assert(eccentricity <= 1.0, 'The eccentricity argument $eccentricity is not less than or equal to one.');