WebTimeProvider class

Native-target stub for WebTimeProvider.

WebTimeProvider is a web-only TimeProvider backed by window.performance.now(). On native (Dart-VM, Flutter mobile/desktop), package:web is unavailable, so the conditional facade in web_time_provider.dart exports this stub instead. Constructing it throws — native consumers should use SystemTimeProvider.

Implemented types

Constructors

WebTimeProvider([bool throwError = true])
Throws — WebTimeProvider requires a web target.

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
nowDateTime() → DateTime
Returns the current wall-clock time as a DateTime.
override
toString() → String
A string representation of this object.
inherited

Operators

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