HiveBox class abstract

Implementers

Constructors

HiveBox()

Properties

hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
no setter
isInitialize bool
getter/setter pair
isNotEmpty bool
no setter
isOpen bool
no setter
keys Iterable
no setter
lazy bool
no setter
name String
no setter
path String?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values List
all values
no setter

Methods

add<T>(T value) Future<int>
Saves the value with an auto-increment key.
addAll<T>(Iterable<T> values) Future<Iterable<int>>
Saves all the values with auto-increment keys.
box<E>() Box<E>
clear() Future<int>
clear
close() Future<void>
compact() Future<void>
containsKey(dynamic key) bool
contains Key
deleteAll(Iterable keys) Future<void>
deleteAll
get(dynamic key) → dynamic
get dynamic
getAt(int index) → dynamic
getAt
getBool(dynamic key) bool?
get bool
getDecodeList(dynamic key) List?
get list and decode 常用于 list 嵌套 map
getDecodeMap(dynamic key) Map<String, dynamic>?
get map and decode 常用于多层map嵌套
getDouble(dynamic key) double?
get double
getInt(dynamic key) int?
get int
getMap(dynamic key) Map?
get map
getObject<T>(dynamic key) → T?
get objet
getString(dynamic key) String?
get string
getStringList(dynamic key) List<String>
get string list
initialize(String name, {String? subDir, bool lazy = false}) Future<void>
lazyBox<E>() LazyBox<E>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openBox() Future<Box>
openLazyBox() Future<LazyBox>
put(dynamic key, dynamic value) Future<void>
putAll(Map entries) Future<void>
putAt(int index, dynamic value) Future<void>
remove(dynamic key) Future<bool>
remove
setBool(dynamic key, bool value) Future<bool>
set bool
setDouble(dynamic key, double value) Future<bool>
set double
setEncodeList(dynamic key, List value) Future<bool>
set list and encode 常用于 list 嵌套 map
setEncodeMap(dynamic key, Map<String, dynamic> value) Future<bool>
set map and encode 常用于多层map嵌套
setInt(dynamic key, int value) Future<bool>
set int
setMap(dynamic key, Map value) Future<bool>
set map
setObject<T>(dynamic key, T value) Future<bool>
set object
setString(dynamic key, String value) Future<bool>
set string
setStringList(dynamic key, List<String> value) Future<bool>
set string list
toString() String
A string representation of this object.
inherited
valuesBetween({dynamic startKey, dynamic endKey}) List
startKey - endKey

Operators

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