RadialLayout constructor

RadialLayout(
  1. Size size, {
  2. double scale = 0.8,
})

scale is the fraction of min(width,height)/2 the radius fills.

Implementation

RadialLayout(Size size, {double scale = 0.8})
  : center = Offset(size.width / 2, size.height / 2),
    radius = math.min(size.width, size.height) / 2 * scale;