LocalDataRepository class
The local data repository is responsible for storing and retrieving the published model and associated layouts and font files from CacheManager.
Constructors
- LocalDataRepository({required CacheManager cacheManager})
- Creates a new LocalDataRepository instance with the given cacheManager.
Properties
- cacheManager → CacheManager
-
The cache manager used to store the the published model and associated
layouts and font files.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deleteFontBytes(
{required String fontID, required PublishSource source}) → void -
Deletes the stored bytes of a given
fontID
from the cache. -
deletePublishApi(
{required String apiId, required PublishSource source}) → void -
Deletes a given api associated with a
apiId
from the cache. -
deletePublishConditions(
{required String layoutID, required PublishSource source}) → void -
Deletes a given api associated with a
apiId
from the cache. -
deletePublishLayout(
{required String layoutID, required PublishSource source}) → void -
Deletes a given layout associated with a
layoutID
from the cache. -
deletePublishVariables(
{required String layoutID, required PublishSource source}) → void -
Deletes a given api associated with a
apiId
from the cache. -
fetchFontBytes(
{required String fontID, required PublishSource source}) → Uint8List? - Returns the SDKPublishLayout from the cache.
-
fetchPublishModel(
{required PublishSource source}) → SDKPublishModel? - Returns the SDKPublishModel from the cache.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveFontBytes(
{required String fontID, required Uint8List bytes, required PublishSource source}) → Future< void> -
Stores the given
bytes
of afontID
in the cache. -
savePublishModel(
{required SDKPublishModel model, required PublishSource source}) → Future< void> - Stores the SDKPublishModel in the cache.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited