getBattery method Null safety

Future getBattery()

Implementation

Future getBattery() => promiseToFuture(JS("", "#.getBattery()", this));