AsyncSandbox class

An await/async-based Sandbox.

This is especially useful for unit testing in order to avoid the Isolate dance, and in cases where users may want to actual threads from being spawned, which the IsolatedNotifier might do.

Implemented types
Annotations
  • @sealed

Constructors

AsyncSandbox.new(Config config)

Properties

hashCode int
The hash code for this object.
no setterinherited
notifier Notifier
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state Context
no setteroverride

Methods

dispatch(Event event) Future<void>
override
dispose() → void
override
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