hide static method
void
hide()
You have to call Loader.hide()
method inside the dispose()
to clear loader.
The overlay or hide your loader when your view is disposed otherwise
throws
an exception.
And also you have to call Loader.hide()
method when you need to hide
your overlay loader.
For example,
After finishing your api call you need to hide your loader.
then just call Loader.hide()
Implementation
static void hide() {
if (_currentLoader != null) {
try {
_currentLoader?.remove();
} catch (e) {
print(e.toString());
} finally {
_currentLoader = null;
}
}
}