clearBox method

Future<void> clearBox(
  1. String boxKey
)

Clear individual box Box Will remain open after being cleared

Implementation

Future<void> clearBox(String boxKey) async {
  try{
    await openBoxes[boxKey]!.clear();
  }catch(e){
    throw("Trying to close a box that is not contained inside of openBoxes");
  }
}