refresh method

void refresh(
  1. [VoidCallback? fn,
  2. bool forceRefresh = false]
)

Implementation

void refresh([VoidCallback? fn, bool forceRefresh = false]) {
  if (forceRefresh || mounted) setState(fn ?? () {});
}