updateWidget method

void updateWidget()

This is called automatically and sets needsUpdate to true every time a new frame is available.

Implementation

void updateWidget() {
  needsUpdate = true;
}