MeshGradient constructor

const MeshGradient({
  1. Key? key,
  2. required MeshPreset preset,
  3. Duration crossDuration = const Duration(milliseconds: 1100),
  4. Curve curve = Curves.easeInOut,
  5. bool animateAmbient = true,
  6. double driftAmount = 1.0,
  7. Duration driftPeriod = const Duration(seconds: 18),
  8. Widget? child,
})

Implementation

const MeshGradient({
  super.key,
  required this.preset,
  this.crossDuration = const Duration(milliseconds: 1100),
  this.curve = Curves.easeInOut,
  this.animateAmbient = true,
  this.driftAmount = 1.0,
  this.driftPeriod = const Duration(seconds: 18),
  this.child,
});