isValid property

bool isValid

returns true if error is null

Implementation

bool get isValid => _error == null;