Created decorators for energy management charts to divide values by 100, and modified the intervals.

This commit is contained in:
Faris Armoush
2025-07-01 18:56:17 +03:00
parent fcaed3e4e3
commit 8534cb3045
8 changed files with 124 additions and 14 deletions

View File

@ -0,0 +1,8 @@
abstract final class SafeDivisionHelper {
const SafeDivisionHelper._();
static double divide(num value, num divider) {
if (divider == 0) return 0;
return value / divider;
}
}