BatteryIndicator constructor

BatteryIndicator({
  1. bool batteryFromPhone = true,
  2. int batteryLevel = 25,
  3. BatteryIndicatorStyle style = BatteryIndicatorStyle.flat,
  4. double ratio = 2.5,
  5. Color mainColor = Colors.black,
  6. bool colorful = true,
  7. bool showPercentNum = true,
  8. bool showPercentSlide = true,
  9. double? percentNumSize,
  10. double size = 14.0,
})

Implementation

BatteryIndicator(
    {this.batteryFromPhone = true,
      this.batteryLevel = 25,
      this.style = BatteryIndicatorStyle.flat,
      this.ratio = 2.5,
      this.mainColor = Colors.black,
      this.colorful = true,
      this.showPercentNum = true,
      this.showPercentSlide = true,
      this.percentNumSize,
      this.size = 14.0});