Foil constructor
const
Foil({
- Key? key,
- bool isUnwrapped = false,
- double opacity = 1.0,
- bool useSensor = true,
- Gradient? gradient,
- BlendMode blendMode = BlendMode.srcATop,
- Scalar scalar = const Scalar(),
- Gradient? unwrappedGradient,
- bool isAgressive = false,
- required Widget child,
- Duration speed = const Duration(milliseconds: 150),
- Duration duration = const Duration(milliseconds: 500),
- Curve curve = Curves.ease,
- 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);