copyWith method
Creates a copy of this route settings object with the given fields replaced with the new values.
Implementation
RouteSettings copyWith({
String name,
bool isInitialRoute,
}) {
return RouteSettings(
name: name ?? this.name,
isInitialRoute: isInitialRoute ?? this.isInitialRoute,
);
}