MaterialHeader constructor
MaterialHeader({})
Implementation
MaterialHeader({
this.key,
this.displacement = 40.0,
this.valueColor,
this.backgroundColor,
completeDuration = const Duration(seconds: 1),
bool enableHapticFeedback = false,
}) : super(
float: true,
extent: 70.0,
triggerDistance: 70.0,
completeDuration: completeDuration == null
? const Duration(
milliseconds: 300,
)
: completeDuration +
const Duration(
milliseconds: 300,
),
enableInfiniteRefresh: false,
enableHapticFeedback: enableHapticFeedback,
);