BHP class

Preferences 配置信息存储

Inheritance

Constructors

BHP()
factory

Properties

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

Methods

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

Operators

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