mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-27 18:00:40 +00:00
10 lines
161 B
Dart
10 lines
161 B
Dart
|
extension SignedString on num {
|
||
|
String toStringSigned() {
|
||
|
if (this > 0) {
|
||
|
return "+${toString()}";
|
||
|
} else {
|
||
|
return toString();
|
||
|
}
|
||
|
}
|
||
|
}
|