resetCounter method Null safety

void resetCounter()

Implementation

void resetCounter() {
  _count = 0;
}