goNext method

void goNext(
  1. BuildContext context,
  2. String name, [
  3. Object? argument
])

Implementation

void goNext(BuildContext context, String name, [Object? argument]) {
  sharedModel.navigator.routeName = name;
  Future.delayed(const Duration(milliseconds: 1), () {
    Navigator.of(context).pushReplacementNamed(name, arguments: argument);
  });
}