CornerRounding constructor

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

Creates a CornerRounding.

Implementation

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