isUrl property

bool get isUrl

是否是url

Implementation

bool get isUrl =>
    isNotEmpty &&
    (this.indexOf("http://") == 0 ||
        this.indexOf("https://") == 0 ||
        this.indexOf("ftp://") == 0);