Closed tschiekdev closed 4 years ago
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.
hasVibrator
Future
if (Vibration.hasVibrator()) { }
error: Conditions must have a static type of 'bool'. (non_bool_condition at ....)