dispose method

void dispose()

Cleans up resources by canceling the better route subscription. Should be called when the controller is no longer needed.

Implementation

void dispose() {
  _betterRouteInfoSubscription.cancel();
}