toValue method Null safety

int toValue()

Implementation

int toValue() => _value;