decrement method

void decrement()

Decrements the value by 1.

Implementation

void decrement() => value = (value - 1) as T;