Conditions must have a static type of 'bool'
Closed this issue · 1 comments
tschiekdev commented
if (Vibration.hasVibrator()) {
}
error: Conditions must have a static type of 'bool'. (non_bool_condition at ....)
benjamindean commented
hasVibrator
is an async method and returns Future
. I will test it out without Futures at some point.