addGST method

void addGST(
  1. double percent
)

Adds GST to the reactive integer.

Example:

final price = swift(100);
price.addGST(10); // price.value is now 110

Implementation

void addGST(double percent) {
  value = (value * (1 + percent / 100)).round();
}