copyWith method

LaamsRoute copyWith({
  1. String? name,
  2. AnimationType? animationType,
  3. int? animationDuration,
  4. Map<String, String>? arguments,
  5. Object? state,
  6. Map<String, dynamic>? query,
  7. String? fragment,
})

Implementation

LaamsRoute copyWith({
  String? name,
  AnimationType? animationType,
  int? animationDuration,
  Map<String, String>? arguments,
  Object? state,
  Map<String, dynamic>? query,
  String? fragment,
}) {
  return LaamsRoute(
    name: name ?? this.name,
    animationType: animationType ?? this.animationType,
    animationDuration: animationDuration ?? this.animationDuration,
    arguments: arguments ?? this.arguments,
    state: state ?? this.state,
    query: query ?? this.query,
    fragment: fragment ?? this.fragment,
  );
}