isHttpUrl static method

bool isHttpUrl(
  1. String url
)

Implementation

static bool isHttpUrl(String url) {
  return url.startsWith('http://') || url.startsWith('https://');
}