hostname property

  1. @override
String get hostname
override

Returns the hostname.

Implementation

@override
String get hostname {
  final match = _atUriRegex.firstMatch(_uri);
  if (match == null) throw FormatException('Invalid at uri: $_uri');

  return match.group(2) ?? '';
}