push method

  1. @override
void push(
  1. Widget widget, {
  2. bool renderScreen = false,
  3. AnalyticsEvent? event,
})
override

Pushes a widget to the stack.

Implementation

@override
void push(
  Widget widget, {
  bool renderScreen = false,
  AnalyticsEvent? event,
}) {
  if (event != null) {
    analyticsService.instance.sendEvent(event);
  }
  onRenderScreen.value = renderScreen;
  _stack.add(widget);
  notifyListeners();
}