Counter class Null safety

Counts the number of times the validation has been performed.

Constructors

Counter({int init = 0, ValObj val = _ok})
init the initial count value. val an optional extra validation step.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value int
The current count value.
read-only

Methods

call(Object? value) String?
Does not perform any validation - just increases its counter upon validation request.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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