Counter constructor

Counter(
  1. String name, [
  2. int value = 0
])

Initialize a new counter with a given name and value (default 0)

Implementation

Counter(this.name, [this.value = 0]);