copyWith method

HiveViewState copyWith({
  1. Box? currentOpenedBox,
  2. HiveViewObject? selectedBoxValue,
  3. List<HiveViewObject>? nestedObjectList,
  4. Map<Box, FromJsonConverter>? boxesMap,
  5. List<Map<int, String>>? objectNestedIndices,
})

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,
  );
}