deviceType property

CastDeviceType deviceType

Implementation

CastDeviceType get deviceType {
  if (type!.contains('_googlecast._tcp')) {
    return CastDeviceType.ChromeCast;
  } else if (type!.contains('_airplay._tcp')) {
    return CastDeviceType.AppleTV;
  }
  return CastDeviceType.Unknown;
}