StateExtensions<T extends StatefulWidget> extension

Extensions on State for safe lifecycle calls.

on

Methods

safeSetState(VoidCallback fn) → void

Available on State<T>, provided by the StateExtensions extension

Calls setState only if the widget is still mounted.