CornerRounding constructor

const CornerRounding({
  1. double radius = 0,
  2. double smoothing = 0,
})

Implementation

const CornerRounding({
  this.radius = 0,
  this.smoothing = 0,
})  : assert(radius >= 0, 'radius has to be greater that zero'),
      assert(
        smoothing >= 0 && smoothing <= 1,
        'smoothing has to be in range [0, 1]',
      );