deleteRoomFile method
Used to delete the file which contains the box and closes the box.
Important:
- You CAN'T revert this deletion.
Return:
- deleteRoomFile will ALWAYS return a
bool
:true
if the file was deleted.false
if something wrong happend.
Implementation
Future<bool> deleteRoomFile(RoomType roomType) async {
Box<dynamic> tempBox = roomType.getBox;
return await tempBox.deleteFromDisk().then((value) => true);
}