Aidra Connect 10.0.2+16
Aidra Connect Mobile Application
Loading...
Searching...
No Matches
HiveCrudService< T > Class Reference

Private Member Functions

 HiveCrudService (this.boxName)
Future< void > init () async
Future< Box< T > > _getBox () async
Future< void > put (String key, T value) async
Future< void > addAll (List< T > values) async
Future< T?> get (String key) async
Future< List< T > > getAll () async
Future< void > delete (String key) async
Future< void > clear () async
Future< bool > containsKey (String key) async
Future< void > closeBox () async

Private Attributes

final String boxName
Box< T > _box

Detailed Description

Definition at line 3 of file hive_services.dart.

Constructor & Destructor Documentation

◆ HiveCrudService()

HiveCrudService< T >::HiveCrudService ( this. boxName)
private

Member Function Documentation

◆ _getBox()

Future< Box< T > > HiveCrudService< T >::_getBox ( )
inlineprivate

Definition at line 17 of file hive_services.dart.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addAll()

Future< void > HiveCrudService< T >::addAll ( List< T > values)
inlineprivate

Definition at line 29 of file hive_services.dart.

Here is the call graph for this function:

◆ clear()

Future< void > HiveCrudService< T >::clear ( )
inlineprivate

Definition at line 51 of file hive_services.dart.

Here is the call graph for this function:

◆ closeBox()

Future< void > HiveCrudService< T >::closeBox ( )
inlineprivate

Definition at line 61 of file hive_services.dart.

◆ containsKey()

Future< bool > HiveCrudService< T >::containsKey ( String key)
inlineprivate

Definition at line 56 of file hive_services.dart.

Here is the call graph for this function:

◆ delete()

Future< void > HiveCrudService< T >::delete ( String key)
inlineprivate

Definition at line 46 of file hive_services.dart.

Here is the call graph for this function:

◆ get()

Future< T?> HiveCrudService< T >::get ( String key)
inlineprivate

Definition at line 36 of file hive_services.dart.

Here is the call graph for this function:

◆ getAll()

Future< List< T > > HiveCrudService< T >::getAll ( )
inlineprivate

Definition at line 41 of file hive_services.dart.

Here is the call graph for this function:

◆ init()

Future< void > HiveCrudService< T >::init ( )
inlineprivate

Definition at line 9 of file hive_services.dart.

◆ put()

Future< void > HiveCrudService< T >::put ( String key,
T value )
inlineprivate

Definition at line 24 of file hive_services.dart.

Here is the call graph for this function:

Member Data Documentation

◆ _box

Box<T> HiveCrudService< T >::_box
private

Definition at line 5 of file hive_services.dart.

◆ boxName

final String HiveCrudService< T >::boxName
private

Definition at line 4 of file hive_services.dart.


The documentation for this class was generated from the following file: