MaterialFooter constructor

MaterialFooter({
  1. Key? key,
  2. Animation<Color?>? valueColor,
  3. Color? backgroundColor,
  4. dynamic completeDuration = const Duration(seconds: 1),
  5. bool enableHapticFeedback = false,
  6. bool enableInfiniteLoad = true,
  7. bool overScroll = false,
})

Implementation

MaterialFooter({
  this.key,
  this.valueColor,
  this.backgroundColor,
  completeDuration = const Duration(seconds: 1),
  bool enableHapticFeedback = false,
  bool enableInfiniteLoad = true,
  bool overScroll = false,
}) : super(
        float: true,
        extent: 52.0,
        triggerDistance: 52.0,
        completeDuration: completeDuration == null
            ? const Duration(
                milliseconds: 300,
              )
            : completeDuration +
                const Duration(
                  milliseconds: 300,
                ),
        enableHapticFeedback: enableHapticFeedback,
        enableInfiniteLoad: enableInfiniteLoad,
        overScroll: overScroll,
      );