pushReplacement function
Implementation
pushReplacement(BuildContext context, dynamic destination) {
if (destination is Widget) {
return _pushReplacementWidget(context, destination);
}
if (destination is Route) {
return _pushReplacementRoute(context, destination);
}
}