removeGST method

void removeGST(
  1. double percent
)

Removes GST from the reactive double.

Example:

final price = swift(110.0);
price.removeGST(10); // price.value is now 100.0

Implementation

void removeGST(double percent) {
  value = value / (1 + percent / 100);
}