ServiceDescription class

A description for an upnp service

Constructors

ServiceDescription.fromXml(Uri uriBase, XmlElement service)
Initializes this description from the provided xml element

Properties

controlUrl String?
The url to control this service
getter/setter pair
eventSubUrl String?
The url to subscribe to events
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
The urn of this services id
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scpdUrl String?
The url this services description
getter/setter pair
type String?
The urn of this services type
getter/setter pair

Methods

getService([Device? device]) Future<Service?>
Returns the according service from this description. The provided device gets used to initialize it in the service
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

Static Methods

patchUrl(Uri uri, String path) Uri
Uri.resolve will check legality and throw FormatException These controlURL and eventSubURL are start with _. patchUrl fixed as with these, see more in test/parse_test.dart.