copyWith method
LmNavigationState
copyWith({
- String? activeBranchId,
- Map<
String, LmBranchState> ? branches, - LmLocation? location,
- List<
LmModalNode> ? modalStack, - int? version,
Implementation
LmNavigationState copyWith({
String? activeBranchId,
Map<String, LmBranchState>? branches,
LmLocation? location,
List<LmModalNode>? modalStack,
int? version,
}) {
return LmNavigationState(
activeBranchId: activeBranchId ?? this.activeBranchId,
branches: branches ?? this.branches,
location: location ?? this.location,
modalStack: modalStack ?? this.modalStack,
version: version ?? this.version + 1,
);
}