Closed jerinho closed 1 year ago
Seriously I cannot think of any tiny good reason why you need to catch the exception for invalid output but at the same return a boolean to tell if the value is correct or not.
bool isvalid = await PhoneNumberUtil().validate('...')
Unhandled Exception: PlatformException(InvalidNumber, Number ... is invalid, null, null)
Keep calm jerinho If you can fill the template with all info, we can help you
Seriously I cannot think of any tiny good reason why you need to catch the exception for invalid output but at the same return a boolean to tell if the value is correct or not.
bool isvalid = await PhoneNumberUtil().validate('...')