artificial_delay 1.0.3+1 copy "artificial_delay: ^1.0.3+1" to clipboard
artificial_delay: ^1.0.3+1 copied to clipboard

A dart package to simulate artificial delays from volatile data providers.

artificial_delay #

A dart package to simulate artificial delays from volatile data providers.

Features #

  • Extremely tiny package
  • Portable, no external packages necessary

Getting started #

Simply add artificial_delay to your pubspec.yaml using dart pub add artificial_delay.

Usage #

import 'package:artificial_delay/artificial_delay.dart';

final artificialDelay = ArtificialDelay(
  minDelay: const Duration(milliseconds: 100),
  maxDelay: const Duration(seconds: 1),
);

await artificialDelay.trigger();
0
likes
160
points
23
downloads

Publisher

verified publishertytydraco.xyz

Weekly Downloads

A dart package to simulate artificial delays from volatile data providers.

Repository
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

More

Packages that depend on artificial_delay