NZBackToTop constructor

const NZBackToTop({
  1. Key? key,
  2. required ScrollController scrollController,
  3. double threshold = 300.0,
  4. Widget? child,
  5. Duration duration = const Duration(milliseconds: 500),
  6. Curve curve = Curves.easeInOut,
  7. EdgeInsets padding = const EdgeInsets.all(16.0),
})

Implementation

const NZBackToTop({
  super.key,
  required this.scrollController,
  this.threshold = 300.0,
  this.child,
  this.duration = const Duration(milliseconds: 500),
  this.curve = Curves.easeInOut,
  this.padding = const EdgeInsets.all(16.0),
});