push method
void
push(
- Widget widget, {
- bool replace = false,
- bool renderScreen = false,
- AnalyticsEvent? event,
override
Pushes a widget to the stack.
Implementation
@override
void push(
Widget widget, {
bool replace = false,
bool renderScreen = false,
AnalyticsEvent? event,
}) {
if (event != null) {
GetIt.I<IAnalyticsService>().sendEvent(event);
}
onRenderScreen.value = renderScreen;
if (replace) {
_stack.removeLast();
}
_stack.add(widget);
notifyListeners();
}