rawAddress property

  1. @override
Uint8List get rawAddress
override

The raw address of this InternetAddress.

For an IP address, the result is either a 4 or 16 byte long list. For a Unix domain address, UTF-8 encoded byte sequences that represents address is returned.

The returned list is a fresh copy, making it possible to change the list without modifying the InternetAddress.

Implementation

@override
Uint8List get rawAddress => Uint8List.fromList(
  address.split('.').map((e) => int.tryParse(e) ?? 0).toList(),
);