updateElement method

void updateElement()

Schedules widget to rebuilt in the next frame

Implementation

void updateElement() {
  assert(dockerUpdaters.isNotNull, "You called update() method on Docker doesn't exist or disposed");
  if (dockerWidget.viewModel._containsDockerUpdater(id: dockerWidget.id)) {
    final schedulerPhase = SchedulerBinding.instance.schedulerPhase;
    if (schedulerPhase == SchedulerPhase.idle || schedulerPhase == SchedulerPhase.postFrameCallbacks) {
      markNeedsBuild();
    } else {
      scheduleMicrotask(markNeedsBuild);
    }
  }
}