ClassicalHeader constructor

ClassicalHeader({
  1. double extent = 60.0,
  2. double triggerDistance = 70.0,
  3. bool float = false,
  4. Duration? completeDuration = const Duration(seconds: 1),
  5. bool enableInfiniteRefresh = false,
  6. bool enableHapticFeedback = true,
  7. bool overScroll = true,
  8. Key? key,
  9. AlignmentGeometry? alignment,
  10. String? refreshText,
  11. String? refreshReadyText,
  12. String? refreshingText,
  13. String? refreshedText,
  14. String? refreshFailedText,
  15. String? noMoreText,
  16. bool showInfo = true,
  17. String? infoText,
  18. Color bgColor = Colors.transparent,
  19. Color textColor = Colors.black,
  20. Color infoColor = Colors.teal,
})

Implementation

ClassicalHeader({
  double extent = 60.0,
  double triggerDistance = 70.0,
  bool float = false,
  Duration? completeDuration = const Duration(seconds: 1),
  bool enableInfiniteRefresh = false,
  bool enableHapticFeedback = true,
  bool overScroll = true,
  this.key,
  this.alignment,
  this.refreshText,
  this.refreshReadyText,
  this.refreshingText,
  this.refreshedText,
  this.refreshFailedText,
  this.noMoreText,
  this.showInfo: true,
  this.infoText,
  this.bgColor: Colors.transparent,
  this.textColor: Colors.black,
  this.infoColor: Colors.teal,
}) : super(
        extent: extent,
        triggerDistance: triggerDistance,
        float: float,
        completeDuration: float
            ? completeDuration == null
                ? Duration(
                    milliseconds: 400,
                  )
                : completeDuration +
                    Duration(
                      milliseconds: 400,
                    )
            : completeDuration,
        enableInfiniteRefresh: enableInfiniteRefresh,
        enableHapticFeedback: enableHapticFeedback,
        overScroll: overScroll,
      );