benjamindean / flutter_vibration

Handle vibration on iOS and Android in Flutter apps
219 stars 68 forks source link

Conditions must have a static type of 'bool' #17

Closed tschiekdev closed 4 years ago

tschiekdev commented 4 years ago

if (Vibration.hasVibrator()) { }

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

benjamindean commented 4 years ago

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