layersin favour of
LayerOptions in favour of
StreamBuilder. Since v3, state is updated using
setState. This means your tile layer is now just a widget, for all intents and purposes, and anything you put in build will automatically be rebuilt when the map state changes.
StreamBuilderimplementation with the below code snippet, and the latest map state will automatically get passed down.
StatelessWidget, which may increase performance and simplify your code!