mounted_state 1.0.1 mounted_state: ^1.0.1 copied to clipboard
Easily check if a widget is mounted before calling setState.
A safe way to call
setState without having to worry about
Don't use this to get around the Flutter framework. Only use this if for example you are doing
async stuff and can't use
FutureBuilder or something similar.
MountedStateOverride like any other mixin.
class _MyHomePageState extends State<MyHomePage> with MountedState, MountedStateOverride
setMountedState which you can use instead of
MountedStateOverride will override
Both always check if the widget is
mounted before calling