Validates a URL. The URL must start with http or https followed by a valid domain.
static bool isValidUrl(String url) => RegExp(r'^(http|https):\/\/[^\s/$.?#].[^\s]*$').hasMatch(url);