notifyState method

void notifyState()

Implementation

void notifyState() {
  if (isDirty) {
    // TODO: no need to set state.. set state next frame ?
  } else {
    setState(() {});
  }
}