copy method

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

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

Uses the cascade operator for cleaner syntax when creating a new instance with mostly the same properties as the original.

Implementation

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