setState method

void setState(
  1. FlintStateUpdater update
)

Applies update and schedules this component to render again.

Implementation

void setState(FlintStateUpdater update) {
  update();
  _scheduleRender?.call();
}