update method

void update({
  1. required VmapEngineOptions options,
  2. required List<VmapMarker> markers,
  3. VmapEngine? engine,
})

Follows a rebuilt widget. The engine made here goes once the app gives one, and a new one is made if the app's goes.

Implementation

void update({
  required VmapEngineOptions options,
  required List<VmapMarker> markers,
  VmapEngine? engine,
}) {
  if (engine != _app) {
    _letGo();
    _use(engine, options, markers);
    return;
  }
  _made?.update(options);
  _giveMarkers(markers);
}