OverconstrainedError class Null safety

Secure contextThis feature is available only in secure contexts (HTTPS), in some or all supporting browsers. Experimental This is an experimental technologyCheck the Browser compatibility table carefully before using this in production. The interface of the Media Capture and Streams API indicates that the set of desired capabilities for the current MediaStreamTrack cannot currently be met. When this event is thrown on a MediaStreamTrack, it is muted until either the current constraints can be established or until satisfiable constraints are applied.

Mixed in types


OverconstrainedError(String constraint, [String? message = ''])


code int
Returns a short that contains one of the error code constants, or 0 if none match. This field is used for historical reasons. New DOM exceptions don't use this anymore: they put this info in the DOMException.name attribute.
read-only, inherited
constraint String
Returns the constraint that was supplied in the constructor, meaning the constraint that was not satisfied.
hashCode int
The hash code for this object. [...]
read-only, inherited
message String
Returns a DOMString representing a message or description associated with the given error name.
read-only, inherited
name String
Returns a DOMString that contains one of the strings associated with an error name.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]