AbstractOnboardingData<T> class abstract

Abstraction of data we download, store and reuse at onboarding.

Implementers

Constructors

AbstractOnboardingData(LocalDatabase _localDatabase)

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → Future<void>
Removes the downloaded data from the database.
downloadData() → Future<bool>
Downloads data and store it locally, then returns true when success
downloadDataString() → Future<String>
Downloads a data and returns it.
getAssetPath() → String
Asset Path to the fallback string.
getData(AssetBundle 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 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

Constants

barcode → const String
Fake barcode provided by the back-end, designed for onboarding.