Counter class

a class that holds a counter that can only be increased or reset

Implementers

Constructors

Counter()

Properties

count int
exposes the count
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

increase() → void
increses the count by one, it's meant for internal use
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
set the count to 0
toString() String
A string representation of this object.
inherited

Operators

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