inc method Null safety

void inc(
  1. [double amount = 1]
)

Increment the value of the gauge with labels by amount. Increments by one, if no amount is provided.

Implementation

void inc([double amount = 1]) {
  value += amount;
}