replace method

dynamic replace(
  1. String name, [
  2. Object? args
])

Implementation

replace(String name, [Object? args]) => Navigator.of(this).pushReplacementNamed(name, arguments: args);