centerOnScreenOffset method
Center the canvas so that the given screen-space offset is at the center of the viewport.
Implementation
void centerOnScreenOffset(Offset ssOffset, {Duration? duration, bool animate = true}) {
centerOnGridOffset(ssToGs(ssOffset, _gsTopLeftOffset, _scale), animate: animate);
}