MorphPiece constructor

const MorphPiece({
  1. required Object id,
  2. required Rect rect,
  3. double radius = 20,
  4. bool solid = true,
  5. double bumpScale = 0.6,
  6. double bumpRecoil = 140,
  7. MorphPieceChannel? channel,
  8. Widget? child,
})

Creates a plain piece: mass and content, no morph identity.

Implementation

const MorphPiece({
  required this.id,
  required this.rect,
  this.radius = 20,
  this.solid = true,
  this.bumpScale = 0.6,
  this.bumpRecoil = 140,
  this.channel,
  this.child,
}) : morphable = false;