Ring constructor

const Ring({
  1. Key? key,
  2. Color? color,
  3. double size = 40.0,
  4. double thickness = 2.0,
  5. double value = 1.0,
})

Implementation

const Ring({
  Key? key,
  this.color,
  this.size = 40.0,
  this.thickness = 2.0,
  this.value = 1.0,
})  : assert(size - thickness > 0),
      assert(thickness >= 0),
      super(key: key);