toPosition method
Implementation
Future<void> toPosition(
double pixels, {
Duration duration = const Duration(milliseconds: 300),
Curve curve = Curves.easeInOut,
}) async {
if (!hasClients) return;
await animateTo(pixels, duration: duration, curve: curve);
}