addGST method

void addGST(
  1. double percent
)

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);
}