Material constructor

Material({
  1. double friction = -1,
  2. double restitution = -1,
  3. String name = '',
})

Implementation

Material({
  this.friction = -1,
  this.restitution = -1,
  this.name = ''
}) {
  id = Material.idCounter++;
}