refresh static method

void refresh(
  1. ReactiveKey? key
)

Triggers a rebuild for either a specific widget (if key is provided) or for all reactive widgets if key is null.

Typically used in combination with a Reactive widget or any reactive consumer.

Implementation

static void refresh(ReactiveKey? key) {
  if (key != null) {
    notifier.updateOnly(key);
  } else {
    notifier.update();
  }
}