addGST method
Adds GST to the reactive double.
Example:
final price = swift(100.0);
price.addGST(10); // price.value is now 110.0
Implementation
void addGST(double percent) {
value = value * (1 + percent / 100);
}
Adds GST to the reactive double.
Example:
final price = swift(100.0);
price.addGST(10); // price.value is now 110.0
void addGST(double percent) {
value = value * (1 + percent / 100);
}