StorageInfo class
Complete storage information including device, app, and model storage
Constructors
-
StorageInfo({required AppStorageInfo appStorage, required DeviceStorageInfo deviceStorage, required List<
ModelStorageMetrics> models}) -
const
-
StorageInfo.fromJson(Map<
String, dynamic> json) -
factory
Properties
- appStorage → AppStorageInfo
-
App storage usage
final
- deviceStorage → DeviceStorageInfo
-
Device storage capacity
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- modelCount → int
-
Number of stored models
no setter
-
models
→ List<
ModelStorageMetrics> -
Storage metrics for each downloaded model
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
storedModels
→ List<
StoredModel> -
Stored models array (backward compatible)
no setter
- totalModelsSize → int
-
Total size of all models
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- empty → const StorageInfo
- Empty storage info