MorphTag constructor

const MorphTag({
  1. Key? key,
  2. required Object id,
  3. required Widget child,
  4. MorphSurfaceSpec? spec,
  5. ShapeBorder shape = const RoundedRectangleBorder(),
  6. Color? surfaceColor,
  7. double elevation = 0,
  8. Widget? replica,
  9. double? bumpScale,
  10. double? bumpRecoil,
  11. bool snapshotGhost = false,
})

Creates an identity tag around child.

Implementation

const MorphTag({
  super.key,
  required this.id,
  required this.child,
  this.spec,
  this.shape = const RoundedRectangleBorder(),
  this.surfaceColor,
  this.elevation = 0,
  this.replica,
  this.bumpScale,
  this.bumpRecoil,
  this.snapshotGhost = false,
}) : assert(elevation >= 0, 'elevation cannot be negative.');