DaoString class

Where we store strings.

Typical use case: large strings used for onboarding. That's why we use lazy boxes, and not boxes, and not sharedpreferences: we're talking about large data (several 10Kb) that we almost never need, and that should not make the app boot slower.

Inheritance

Constructors

DaoString(LocalDatabase localDatabase)

Properties

hashCode → int
The hash code for this object.
no setterinherited
localDatabase → LocalDatabase
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

get(String key) → Future<String?>
init() → Future<void>
Best place to open a hive box.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(String key, String? value) → Future<void>
registerAdapter() → void
Where the specific registerAdapter hive related method is called.
override
toString() → String
A string representation of this object.
inherited

Operators

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