copyWith method
HiveViewState
copyWith({
- Box? currentOpenedBox,
- HiveViewObject? selectedBoxValue,
- List<
HiveViewObject> ? nestedObjectList, - Map<
Box, FromJsonConverter> ? boxesMap, - List<
Map< ? objectNestedIndices,int, String> >
Creates a new HiveViewState object with the given parameters
Implementation
HiveViewState copyWith({
Box? currentOpenedBox,
HiveViewObject? selectedBoxValue,
List<HiveViewObject>? nestedObjectList,
Map<Box, FromJsonConverter>? boxesMap,
List<Map<int, String>>? objectNestedIndices,
}) {
return HiveViewState(
boxesMap: boxesMap ?? this.boxesMap,
currentOpenedBox: currentOpenedBox ?? this.currentOpenedBox,
selectedBoxValue: selectedBoxValue ?? this.selectedBoxValue,
nestedObjectList: nestedObjectList ?? this.nestedObjectList,
objectNestedIndices: objectNestedIndices ?? this.objectNestedIndices,
);
}