copy method

PageSettings copy({
  1. Uri? uri,
  2. Object? arguments,
})

Creates a copy of this PageSettings object with optional parameters overridden.

The optional uri parameter allows specifying a new URI for the copy. The optional arguments parameter allows specifying new arguments for the copy.

Implementation

PageSettings copy({
  Uri? uri,
  Object? arguments,
}) {
  return PageSettings(
    uri ?? this.uri,
    arguments ?? this.arguments,
  );
}