addTail method
void
addTail(
- Widget screen, {
- BaseContainerOptions? options = BaseContainerOptions.defaultSetup,
- 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();
}