flick method
Future
flick(
- dynamic dragEndDetails
)
Implementation
Future flick(dynamic dragEndDetails) async {
checkViewAndBound();
Offset flickTarget = getFlickTarget(dragEndDetails);
if (_debugLevel > 0) {
print("--------------------");
print(viewRenderBox!.localToGlobal(Offset.zero));
print(dragEndDetails.velocity.pixelsPerSecond);
print(dragEndDetails.velocity.pixelsPerSecond.distance);
print(flickTarget);
print("--------------------");
}
await move(flickTarget);
deltaNotifier.value = flickTarget;
delta = Offset.zero;
if (onFlick != null) onFlick!(deltaNotifier.value);
}