DelayService class

Constructors

DelayService.new({int defaultDelay = 500})
Constructs a DelayService instance with an optional default delay.

Properties

defaultDelay int
Gets the current default delay for simulated network operations.
no setter
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
setDelay(int milliseconds) → void
Sets a new delay for simulated network operations.
simulateDelay() Future<void>
Simulates a network delay by waiting for the default delay duration.
toString() String
A string representation of this object.
inherited

Operators

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