MediaPermissionError class

A normalized media permission or capture error.

Use code for app logic and message for a short human-readable fallback. The optional name keeps the original browser error text when available, which is useful for logging or support diagnostics.

Constructors

MediaPermissionError({required MediaPermissionErrorCode code, required String message, String? name})
const

Properties

code → MediaPermissionErrorCode
Stable error category that app code can switch on.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
Short user-facing explanation of the failure.
final
name → String?
Original browser error name or text when available.
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