twoLevelComplete method
Future<void>?
twoLevelComplete(
{ - Duration duration = const Duration(milliseconds: 500),
- Curve curve = Curves.linear,
})
Implementation
Future<void>? twoLevelComplete(
{Duration duration = const Duration(milliseconds: 500),
Curve curve = Curves.linear}) {
headerMode?.value = RefreshStatus.twoLevelClosing;
WidgetsBinding.instance.addPostFrameCallback((_) {
position!
.animateTo(0.0, duration: duration, curve: curve)
.whenComplete(() {
headerMode!.value = RefreshStatus.idle;
});
});
return null;
}