copyWith method Null safety

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 ?? this.location,
    state: state ?? this.state,
  );
}