BatteryLevelIcon constructor

BatteryLevelIcon(
  1. int batteryLevel, {
  2. dynamic size = WidgetStyleConstants.defaultDeviceIconSize,
  3. dynamic color = WidgetStyleConstants.deviceIconColor,
  4. Key? key,
})

Implementation

BatteryLevelIcon(int batteryLevel,
    {size = WidgetStyleConstants.defaultDeviceIconSize,
    color = WidgetStyleConstants.deviceIconColor,
    Key? key})
    : super(_getBatteryLevelIcon(batteryLevel),
          key: key, size: size, color: color);