Ball constructor

const Ball({
  1. Key? key,
  2. double radius = 15,
  3. Color color = Colors.blue,
})

Implementation

const Ball({
  Key? key,
  this.radius = 15,
  this.color = Colors.blue,
}) : super(key: key);