SnapchatRefresh constructor

const SnapchatRefresh({
  1. Key? key,
  2. double animSpeedFactor = 1.0,
  3. required Widget child,
  4. required RefreshCallback onRefresh,
  5. required String? lottiePath,
  6. Color? color = Colors.blue,
  7. double? height,
  8. int springAnimationDurationInMilliseconds = 800,
  9. int dismissDuration = 200,
})

Implementation

const SnapchatRefresh({
  super.key,
  this.animSpeedFactor = 1.0,
  required this.child,
  required this.onRefresh,
  required this.lottiePath,
  this.color = Colors.blue,
  this.height,
  this.springAnimationDurationInMilliseconds = 800,
  this.dismissDuration = 200,
})  : assert(animSpeedFactor >= 1.0);