goTo method

Future<void> goTo({
  1. Matrix4? destination,
  2. Duration duration = const Duration(milliseconds: 200),
  3. Curve curve = Curves.easeInOut,
})

Go to the destination specified by the matrix. To go to a specific page, use goToPage method or use calculatePageFitMatrix method to calculate the page location matrix. If destination is null, the method does nothing.

Implementation

Future<void> goTo({
  Matrix4? destination,
  Duration duration = const Duration(milliseconds: 200),
  Curve curve = Curves.easeInOut,
}) =>
    _state!._goTo(
      destination: destination,
      duration: duration,
      curve: curve,
    );