goTo method

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

Go to the destination specified by the matrix.

To go to a specific page, use goToPage method or use calculatePageFitMatrix/calculatePageMatrix 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),
}) =>
    _state!._goTo(
      destination: destination,
      duration: duration,
    );