benjamindean/flutter_vibration

Conditions must have a static type of 'bool'

Closed this issue · 1 comments

if (Vibration.hasVibrator()) {
}

error: Conditions must have a static type of 'bool'. (non_bool_condition at ....)

hasVibrator is an async method and returns Future. I will test it out without Futures at some point.