// Create a box collectionfinalcollection=awaitBoxCollection.open('MyFirstFluffyBox',// Name of your database{'cats','dogs'},// Names of your boxespath:'./',// Path where to store your boxes (Only used in Flutter / Dart IO)key:HiveCipher(),// Key to encrypt your boxes (Only used in Flutter / Dart IO));// Open your boxes. Optional: Give it a type.finalcatsBox=collection.openBox<Map>('cats');// Put something inawaitcatsBox.put('fluffy',{'name':'Fluffy','age':4});awaitcatsBox.put('loki',{'name':'Loki','age':2});// Get values of type (immutable) Map?finalloki=awaitcatsBox.get('loki');print('Loki is ${loki?['age']} years old.');// Returns a List of valuesfinalcats=awaitcatsBox.getAll(['loki','fluffy']);print(cats);// Returns a List<String> of all keysfinalallCatKeys=awaitcatsBox.getAllKeys();print(allCatKeys);// Returns a Map<String, Map> with all keys and entriesfinalcatMap=awaitcatsBox.getAllValues();print(catMap);// delete one or more entriesawaitcatsBox.delete('loki');awaitcatsBox.deleteAll(['loki','fluffy']);// ...or clear the whole box at onceawaitcatsBox.clear();// Speed up write actions with transactionsawaitcollection.transaction(()async{awaitcatsBox.put('fluffy',{'name':'Fluffy','age':4});awaitcatsBox.put('loki',{'name':'Loki','age':2});// ...},boxNames:['cats'],// By default all boxes become blocked.readOnly:false,);