CastDevice class

A Google Cast (Chromecast) receiver found on the local network.

Returned by CastDeviceDiscovery.discover(); pass it to CastSession.connect() to start controlling the receiver.

Annotations

Constructors

CastDevice({required String id, required String name, required String host, required int port, String? friendlyName, String? model})
const

Properties

displayName String
Best display label for a picker.
no setter
friendlyName String?
Human-readable name from the TXT record's fn entry ("Living room TV") — show this in pickers when present.
final
hashCode int
The hash code for this object.
no setterinherited
host String
IP/hostname to connect to (CASTV2 uses TLS on port, usually 8009).
final
id String
mDNS service instance (unique per device on the network).
final
model String?
Device model from the TXT record's md entry ("Chromecast Ultra").
final
name String
Service instance name (often a device identifier).
final
port int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited