validateLink static method
Validates if the value is a valid URL using ValidationPatterns.urlPattern.
Returns true
if value is a valid URL, otherwise false
.
Example:
IstValidator.validateLink("https://spee.dev"); // true
IstValidator.validateLink("https://spee"); // false
Implementation
static bool validateLink(String value) {
return RegExp(ValidationPatterns.urlPattern).hasMatch(value);
}