downloadData method
Downloads data and store it locally, then returns true when success
Implementation
Future<bool> downloadData() async {
try {
final String string = await downloadDataString();
final DaoString daoString = DaoString(_localDatabase);
await daoString.put(_getDatabaseKey(), string);
return true;
} catch (e) {
return false;
}
}