SpeechPackage class Null safety
Speech package
- Inheritance
- Object
- SqliteModel
- OfflineFirstModel
- OfflineFirstWithRestModel
- SyncModel
- SpeechPackage
- Implemented types
- Annotations
- @DataClass()
- @JsonSerializable()
- @ConnectOfflineFirstWithRest(restConfig: const RestSerializable(endpoint: '=> SpeechPackageSyncEndpointHelper.restEndpoint(query, instance)', fieldRename: FieldRename.none))
Constructors
-
SpeechPackage({String? id, required String name, required String lang, required String url, required String version, List<
SpeechCondition> conditions = const []}) - Speech package
- SpeechPackage.empty()
- Empty package
-
SpeechPackage.fromJson(Map<
String, dynamic> json) -
Create SpeechPackage from a json representation
factory
Properties
-
conditions
→ List<
SpeechCondition> -
Conditions for the included audio files
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- id → String
-
Id
@Sqlite(index: true, unique: true), final
- isNewRecord → bool
-
If
true
, this model has not yet been inserted into SQLite.read-only, inherited - lang → String
-
Which language is the pack for
final
- name → String
-
Name of the speech package
final
- primaryKey ↔ int?
-
The fields needs to be overwritten, to keep it out of the json
@JsonKey(ignore: true), read / write, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- url → String
-
Where to download
final
- version → String
-
Version of the package
final
Methods
-
afterSave(
{Provider< Model> ? provider, ModelRepository<Model> ? repository}) → Future<void> -
Hook invoked after the model is successfully entered in the SQLite database.
Useful to update or save associations.
inherited
-
beforeSave(
{Provider< Model> ? provider, ModelRepository<Model> ? repository}) → Future<void> -
Hook invoked before the model is successfully entered in the SQLite database.
Useful to update or save associations.
inherited
-
copyWith(
{String? id, String? name, String? lang, String? url, String? version, List< SpeechCondition> ? conditions}) → SpeechPackage -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toJson(
) → Map< String, dynamic> -
Json representation
override
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited