CNScrollEdgeEffect constructor
const
CNScrollEdgeEffect({
- Key? key,
- CNScrollEdge edge = CNScrollEdge.top,
- double? height,
- CNScrollEdgeStyle style = CNScrollEdgeStyle.soft,
- ScrollController? controller,
- ValueListenable<
ScrollMetrics?> ? scrollMetrics, - Brightness? brightness,
- Color? backgroundColor,
Creates a scroll edge effect at edge.
Implementation
const CNScrollEdgeEffect({
super.key,
this.edge = CNScrollEdge.top,
this.height,
this.style = CNScrollEdgeStyle.soft,
this.controller,
this.scrollMetrics,
this.brightness,
this.backgroundColor,
}) : assert(height == null || height >= 0),
assert(
controller == null || scrollMetrics == null,
'Pass a controller or scrollMetrics, not both',
);