GravityField constructor

const GravityField({
  1. Key? key,
  2. required List objects,
  3. double gravity = 600,
  4. required double mapX,
  5. required double mapY,
  6. required Color mapColor,
  7. double frictionConstant = 0.7,
  8. double elasticConstant = 0.8,
})

Implementation

const GravityField({
  Key? key,
  required this.objects,
  this.gravity = 600,
  required this.mapX,
  required this.mapY,
  required this.mapColor,
  this.frictionConstant = 0.7,
  this.elasticConstant = 0.8
}) : super(key: key);