Counter class

A counter class that follows the specification outlined at https://www.w3.org/TR/css-lists-3/#auto-numbering.

Essentially, the created Counter stores a value that can be incremented by a given value (even negative numbers).

Constructors

Counter(String name, [int value = 0])
Initialize a new counter with a given name and value (default 0)

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
getter/setter pair

Methods

increment([int byValue = 1]) → void
Increment the counter by a given value (default is 1)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Reset the counter to 0.
toString() String
A string representation of this object.
inherited

Operators

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