goTo method
Go to the specified position by the matrix.
All the goToXXX
functions internally calls the function.
So if you customize the behavior of the viewer, you can extend PdfViewerController and override the function:
class MyPdfViewerController extends PdfViewerController {
@override
Future<void> goTo(
Matrix4? destination, {
Duration duration = const Duration(milliseconds: 200),
}) async {
print('goTo');
super.goTo(destination, duration: duration);
}
}
Implementation
Future<void> goTo(
Matrix4? destination, {
Duration duration = const Duration(milliseconds: 200),
}) =>
_state._goTo(destination, duration: duration);