sub method
Subtracts a value from the reactive double and updates it.
Example:
final price = swift(10.5);
price.sub(3.2); // price.value is now 7.3
Implementation
void sub(double value) {
this.value -= value;
}
Subtracts a value from the reactive double and updates it.
Example:
final price = swift(10.5);
price.sub(3.2); // price.value is now 7.3
void sub(double value) {
this.value -= value;
}