ClassicalHeader constructor
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,
- Key? key,
- AlignmentGeometry? alignment,
- String? refreshText,
- String? refreshReadyText,
- String? refreshingText,
- String? refreshedText,
- String? refreshFailedText,
- String? noMoreText,
- bool showInfo = true,
- String? infoText,
- Color bgColor = Colors.transparent,
- Color textColor = Colors.black,
- 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,
);