LockManager class
Experimental: This is an experimental technologyCheck the
Browser compatibility table carefully before using this in
production.
The interface of the Web Locks API provides methods for
requesting a new Lock object and querying for an existing
Lock object. To get an instance of , call navigator.locks
.
- Available extensions
- Annotations
-
- @experimental
- @JS()
- @staticInterop
Constructors
- LockManager()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
query(
) → Future< LockManagerSnapshot> -
Available on LockManager, provided by the PropsLockManager extension
-
request(
String name, [LockOptions? options, LockGrantedCallback? callback]) → Future -
Available on LockManager, provided by the PropsLockManager extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited