AbstractOnboardingData<T> class
Null safety
Abstraction of data we download, store and reuse at onboarding.
Constructors
- AbstractOnboardingData(dynamic _localDatabase)
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
clear(
) → Future< void> - Removes the downloaded data from the database. [...]
-
downloadData(
) → Future< void> - Downloads data and store it locally.
-
downloadDataString(
) → Future< String> - Downloads a data and returns it.
-
getAssetPath(
) → String - Asset Path to the fallback string.
-
getData(
dynamic rootBundle) → Future< T> - Gets the data, either as recently downloaded, or as asset (fallback).
-
getDataFromNonNullString(
String jsonString) → T - Converts a string into the expected object.
-
getDataFromString(
String? jsonString) → T? - Converts a string into the expected object, even null.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited