HiveRepository<E> class

Constructors

HiveRepository(String name, {bool? lazy, HiveCipher? encryptionCipher, KeyComparator? keyComparator, CompactionStrategy? compactionStrategy, bool? crashRecovery, String? boxPath, Uint8List? bytes})

Properties

box ↔ BoxBase<E>
getter/setter pair
boxPath String?
final
bytes Uint8List?
final
compactionStrategy → CompactionStrategy
final
crashRecovery bool
final
encryptionCipher → HiveCipher?
final
hashCode int
The hash code for this object.
no setterinherited
hive ↔ HiveInterface
getter/setter pair
isEmpty Future<bool>
no setter
isNotEmpty Future<bool>
no setter
isOpen Future<bool>
no setter
keyComparator → KeyComparator
final
keys Future<Iterable>
no setter
lazy bool
final
length Future<int>
no setter
name String
final
path Future<String?>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Future<Iterable<E>?>
no setter

Methods

add(E value) Future<int>
addAll(Iterable<E> values) Future<Iterable<int>>
clear() Future<int>
close() Future<void>
compact() Future<void>
containsKey(dynamic key) Future<bool>
delete(dynamic key) Future<void>
deleteAll(Iterable keys) Future<void>
deleteAt(int index) Future<void>
deleteFromDisk() Future<void>
destroy() FutureOr<void>
flush() Future<void>
get(dynamic key, {E? defaultValue}) Future<E?>
getAt(int index) Future<E?>
init([HiveInterface? hive]) Future<BoxBase<E>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(dynamic key, E value) Future<void>
putAll(Map<dynamic, E> entries) Future<void>
putAt(int index, E value) Future<void>
reopen() Future<void>
toMap() Future<Map<dynamic, E>?>
toString() String
A string representation of this object.
inherited
valuesBetween({dynamic startKey, dynamic endKey}) Future<Iterable<E>?>
watch({dynamic key}) Stream<BoxEvent>

Operators

operator ==(Object other) bool
The equality operator.
inherited