isLocalhostUrl function

bool isLocalhostUrl(
  1. String url
)

Implementation

bool isLocalhostUrl(String url) {
  return RegExp(r'wss?://localhost(:d{2,5})?').hasMatch(url);
}