RefreshRateWeb class

Web platform implementation of the RefreshRate plugin.

Uses requestAnimationFrame interval timing to detect the display's current refresh rate (same technique as TestUFO). Control methods are graceful no-ops because browsers own their vsync scheduling and expose no API to change it.

What works on web

Feature Status
Query current Hz ✓ (via rAF timing)
FPS overlay / benchmark ✓ (pure Dart, unchanged)
Unlock / control rate ✗ (browsers own vsync)
Supported rates / max rate ✗ (not exposed)
Low Power Mode / thermal ✗ (no web equivalent)

Constructors

RefreshRateWeb()

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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

registerWith(Registrar registrar) → void
Registers the web plugin by swapping in WebRefreshRateApiAdapter.