sseSetRootPage function
Implementation
Future<dynamic> sseSetRootPage(BuildContext context, Widget pageName, {bool? maintainState}) async {
var response = await Navigator.pushAndRemoveUntil(
context,
MaterialPageRoute(
builder: (context) => pageName,
maintainState: maintainState ?? true),
(Route<dynamic> route) => false);
return response;
}