increment method

void increment({
  1. num increment = 1,
})

If Data is of type int, double, float or any num, you can increment (default 1)

Implementation

void increment({num increment = 1}) {
  this.data = ((this.data as num) + increment) as T?;
  if (isDisposed) return;
  notifyListeners();
}