isHttp static method

bool isHttp(
  1. String url
)

是否是 http 地址

Implementation

static bool isHttp(String url) => url.startsWith('http');