applyPercent method
Applies a percentage to the reactive integer (adds percentage).
Example:
final price = swift(100);
price.applyPercent(20); // price.value is now 120
Implementation
void applyPercent(double percent) {
value = (value * (1 + percent / 100)).round();
}