Counter class

An incrementing and decrementing counter metric.

Implemented types

Constructors

Counter()

Properties

count → int
Returns the counter's current value.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dec([int n = 1]) → void
Decrement the counter by n or 1 if ommitted.
inc([int n = 1]) → void
Increment the counter by n or 1 if ommitted.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited