setState method

void setState([
  1. VoidCallback? fn
])

Notifys component to refresh widget.

Implementation

void setState([VoidCallback? fn]) {
  fn?.call();
  _controller._setState(() {});
}