Foil constructor

const Foil({
  1. Key? key,
  2. bool isUnwrapped = false,
  3. double opacity = 1.0,
  4. bool useSensor = true,
  5. Gradient? gradient,
  6. BlendMode blendMode = BlendMode.srcATop,
  7. Scalar scalar = const Scalar(),
  8. Gradient? unwrappedGradient,
  9. bool isAgressive = false,
  10. required Widget child,
  11. Duration speed = const Duration(milliseconds: 150),
  12. Duration duration = const Duration(milliseconds: 500),
  13. Curve curve = Curves.ease,
  14. VoidCallback? onEnd,
})

Implementation

const Foil({
  Key? key,
  this.isUnwrapped = false,
  this.opacity = 1.0,
  this.useSensor = true,
  this.gradient,
  this.blendMode = BlendMode.srcATop,
  this.scalar = const Scalar(),
  this.unwrappedGradient,
  this.isAgressive = false,
  required this.child,
  this.speed = const Duration(milliseconds: 150),
  this.duration = const Duration(milliseconds: 500),
  this.curve = Curves.ease,
  this.onEnd,
}) : sheet = const Sheet(),
     // irrelevant in this context
     box = null,
     // irrelevant in this context
     super(key: key);