addTail method

void addTail(
  1. Widget screen, {
  2. BaseContainerOptions? options = BaseContainerOptions.defaultSetup,
  3. dynamic arguments,
})

Creates a new tail home

Implementation

void addTail(Widget screen,
    {BaseContainerOptions? options = BaseContainerOptions.defaultSetup,
    dynamic arguments}) {
  screenViewHistory = [screenViewHistory.first];
  optionsHistory = [optionsHistory.first];

  screenViewHistory.add(screen);
  baseContainerOptions = options!;
  optionsHistory.add(baseContainerOptions);
  if (arguments != null) routeArguments = arguments;
  notifyListeners();
}