OnboardingDataProduct class
Helper around a product we download, store and reuse at onboarding.
- Inheritance
-
- Object
- AbstractOnboardingData<
Product> - OnboardingDataProduct
Constructors
- OnboardingDataProduct(LocalDatabase localDatabase, String assetPath)
- OnboardingDataProduct.forProduct(LocalDatabase localDatabase)
- Was computed from downloadDataString in en_US
Properties
Methods
-
clear(
) → Future< void> -
Removes the downloaded data from the database.
inherited
-
downloadData(
) → Future< bool> -
Downloads data and store it locally, then returns true when success
inherited
-
downloadDataString(
) → Future< String> -
Downloads a data and returns it.
override
-
getAssetPath(
) → String -
Asset Path to the fallback string.
override
-
getData(
AssetBundle rootBundle) → Future< Product> -
Gets the data, either as recently downloaded, or as asset (fallback).
inherited
-
getDataFromNonNullString(
String jsonString) → Product -
Converts a string into the expected object.
override
-
getDataFromString(
String? jsonString) → Product? -
Converts a string into the expected object, even null.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited