changeOverlay method

void changeOverlay({
  1. Widget? overlay,
})

Implementation

void changeOverlay({Widget? overlay}) {
  _overlay = overlay;
  Future.delayed(const Duration(seconds: 0)).then((value) => setState(() {}));
}