show static method
void
show()
Show Loader
Implementation
static void show() {
if (_overlayEntry != null) return;
_overlayEntry = OverlayEntry(
builder: (context) => AbsorbPointer(
absorbing: true,
child: Stack(
children: [
const Opacity(
opacity: 0.3,
child: ModalBarrier(color: Colors.black, dismissible: false),
),
Center(
child: CircularProgressIndicator(
strokeWidth: 2,
color: _loaderColor,
),
),
],
),
),
);
_navigatorKey.currentState?.overlay?.insert(_overlayEntry!);
}