replaceMaps method

void replaceMaps({
  1. required Map<String, ReorderableEntity> updatedChildrenKeyMap,
  2. required Map<int, ReorderableEntity> updatedChildrenOrderMap,
})

Implementation

void replaceMaps({
  required Map<String, ReorderableEntity> updatedChildrenKeyMap,
  required Map<int, ReorderableEntity> updatedChildrenOrderMap,
}) {
  childrenOrderMap.clear();
  childrenOrderMap.addAll(updatedChildrenOrderMap);
  childrenKeyMap.clear();
  childrenKeyMap.addAll(updatedChildrenKeyMap);
}