goToScreen method

  1. @override
void goToScreen(
  1. String name,
  2. BuildContext context,
  3. Map<String, String>? args
)
override

It goes to another screen with optionally custom args

Implementation

@override
void goToScreen(String name, BuildContext context, Map<String, String>? args) {
  developer.log("Changing screen to $name");
  String screenArgs = args != null ? this.buildArgs(args) : "";
  this.pushHistoryState(name, screenArgs);
  Navigator.pushReplacementNamed(context, name);
}