Can you convert a Future<String>
to a String
?
Every time I start my application, it should get data from the database, store it in a .csv file, read the .csv file and update some string variables. I want my application to run offline.
I'm looking for a solution like this:
String string;
Future<String> = futureString;
if (futureString == null) {
string = '{standard value}';
} else {
string = futureString;
}
I hope you guys get the picture and can help me out! Thanks!