copyWith method

GetNavConfig copyWith({
  1. List<GetPage>? currentTreeBranch,
  2. required String? location,
  3. required Object? state,
})

Implementation

GetNavConfig copyWith({
  List<GetPage>? currentTreeBranch,
  required String? location,
  required Object? state,
}) {
  return GetNavConfig(
    currentTreeBranch: currentTreeBranch ?? this.currentTreeBranch,
    location: location ?? locationString,
    state: state ?? this.state,
  );
}