StoredModel class
Backward-compatible stored model view Provides a simple view of a stored model with computed properties
Constructors
- StoredModel({required ModelInfo modelInfo, required int size})
-
const
-
StoredModel.fromJson(Map<
String, dynamic> json) -
factory
- StoredModel.fromMetrics(ModelStorageMetrics metrics)
-
Create from ModelStorageMetrics
factory
Properties
- createdDate → DateTime
-
Created date (use current date as fallback)
no setter
- description → String?
-
Model description
no setter
- format → ModelFormat
-
Model format
no setter
- framework → InferenceFramework
-
Inference framework
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Model ID
no setter
- modelInfo → ModelInfo
-
Underlying model info
final
- name → String
-
Model name
no setter
- path → Uri
-
Path to the model on disk
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
Size on disk in bytes
final
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