CNScrollEdgeEffect constructor

const CNScrollEdgeEffect({
  1. Key? key,
  2. CNScrollEdge edge = CNScrollEdge.top,
  3. double? height,
  4. CNScrollEdgeStyle style = CNScrollEdgeStyle.soft,
  5. ScrollController? controller,
  6. ValueListenable<ScrollMetrics?>? scrollMetrics,
  7. Brightness? brightness,
  8. 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',
     );