updateBatteryLevel method
Updates the local node's battery level in the background sync engine. The new level will be included in the next sync payload.
Implementation
void updateBatteryLevel(int? batteryLevel) {
if (getIt.isRegistered<AirpassSyncEngine>()) {
getIt<AirpassSyncEngine>().localBatteryLevel = batteryLevel;
}
}