goToScreen abstract method

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

It goes to another screen with optionally custom args

Implementation

void goToScreen(String name, BuildContext context, Map<String, String>? args);