energyUsed property

int get energyUsed

Implementation

int get energyUsed {
  return energyConsumed > energyBalance ? 0 : energyConsumed;
}