simpleURL static method

String? simpleURL(
  1. String? value, {
  2. String? message,
})

Check if the value is a valid URL. This is a simple check.

Implementation

static String? simpleURL(String? value, {String? message}) =>
    value == null || value.isEmpty || validations.isURL(value) ? null : message ?? 'Please enter a valid url';