$getProperty method

  1. @override
$Value? $getProperty(
  1. Runtime runtime,
  2. String identifier
)
override

Get a property by identifier on this instance

Implementation

@override
$Value? $getProperty(Runtime runtime, String identifier) {
  switch (identifier) {
    case 'type':
      return $InternetAddressType.wrap($value.type);
    case 'address':
      return $String($value.address);
    case 'host':
      return $String($value.host);
    case 'rawAddress':
      return $Uint8List.wrap($value.rawAddress);
    case 'isLoopback':
      return $bool($value.isLoopback);
    case 'isLinkLocal':
      return $bool($value.isLinkLocal);
    case 'isMulticast':
      return $bool($value.isMulticast);
    case 'reverse':
      return __$reverse;
    default:
      return _superclass.$getProperty(runtime, identifier);
  }
}