AudioRouteResult class

Result details for a route selection or clearing request.

Constructors

AudioRouteResult({required bool success, required AudioRouteStatus status, AudioOutputDevice? requestedDevice, AudioOutputDevice? actualDevice, String? message, String? errorCode})
Creates a route result.
const
AudioRouteResult.fromMap(Map map)
Converts a platform map into an AudioRouteResult.
factory

Properties

actualDevice AudioOutputDevice?
The device the platform reports as active after the request.
final
errorCode String?
Platform-specific error code, when available.
final
hashCode int
The hash code for this object.
no setterinherited
message String?
Human-readable diagnostic context from the platform.
final
requestedDevice AudioOutputDevice?
The device the caller asked to use, when known.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status AudioRouteStatus
Machine-readable status for the request.
final
success bool
Whether the request achieved the desired state.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts this result to a platform map.
toString() String
A string representation of this object.
override

Operators

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