clear method Null safety

Future<void> clear()

Removes the downloaded data from the database.

Typical use case: data we downloaded just for the onboarding, that we can clear after the onboarding.

Implementation

Future<void> clear() async =>
    DaoString(_localDatabase).put(_getDatabaseKey(), null);