show method
Implementation
DialogShower show(Widget _child, {double? width, double? height}) {
if (routeName.isEmpty) {
routeName = 'SHOWER-${DateTime.now().microsecondsSinceEpoch}';
if (NavigatorObserverEx.statesChangingShowers?[routeName] != null) {
// check it out please !!!!
assert(() {
__shower_log__('❗️ observer already contains this route name: $routeName ???');
return true;
}());
routeName = routeName + '-${1000 + math.Random().nextInt(10000)}';
}
}
NavigatorObserverEx.statesChangingShowers?[routeName] = this;
isSyncShow
? _show(_child, width: width, height: height)
: Future.microtask(() => _show(_child, width: width, height: height));
return this;
}