isSecure property
bool
get
isSecure
Returns true if this URI uses HTTPS scheme.
Example:
Uri.parse('https://example.com').isSecure; // true
Uri.parse('http://example.com').isSecure; // false
Implementation
bool get isSecure => scheme.toLowerCase() == 'https';