isSecure method

bool isSecure(
  1. String url
)

Check if the given URL is secure (HTTPS).

Implementation

bool isSecure(String url) {
  return url.startsWith('https://');
}