isRemoteUrl static method

bool isRemoteUrl(
  1. String value
)

Implementation

static bool isRemoteUrl(String value) {
  return RegExp(
          r'ftp:.*|https?:.*|s3:.*|gs:.*|data:([\w-]+/[\w-]+)?(;[\w-]+=[\w-]+)*;base64,([a-zA-Z0-9/+ =]+)')
      .hasMatch(value);
}