BlueZBattery constructor

BlueZBattery(
  1. DBusObjectPath path,
  2. BlueZDevice device, {
  3. int percentage = 0,
  4. String source = '',
})

Implementation

BlueZBattery(
  DBusObjectPath path,
  this.device, {
  int percentage = 0,
  this.source = '',
})  : _percentage = percentage,
      super(path) {
  assert(percentage >= 0 && percentage <= 100);
}