I need to check my file reading was successful and return true or false. I need to use async and await function because it needs to return true otherwise no point continuing.
I get a run time error from my snapshot: format.Exception:Invalid boolean false
Offending line is: bool result = await fb.readFile();
More detail image:
fb
norRung.myList
is not part of your example code. otherwise the code looks fine on a first glance.bool result = await fb.readFile();
Reason being, that fb is not accesible in an initializer, since fb is initialized at the same time as result is (that being on creation of an A instance). also async code is prolly invalid as an initializer.