copyWith method

PageInfo copyWith({
  1. String? name,
  2. AutoRoutePageBuilder? builder,
})

Creates a new instance of PageInfo with the given parameters

Implementation

PageInfo copyWith({
  String? name,
  AutoRoutePageBuilder? builder,
}) {
  return PageInfo(
    name ?? this.name,
    builder: builder ?? this.builder,
  );
}