The capture state of the running preview.
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 Properties
- isActive → bool
-
no setter
-
mail
→ List<
DVMailMessage> -
Mail captured in this process, oldest first.
no setter
-
notifications
→ List<
DVSentNotification> -
Notifications captured in this process, oldest first.
no setter
Static Methods
-
activate(
DVPreviewRuntime runtime, {void onFinding(DVPreviewFinding finding)?}) → void -
Starts capturing for
runtime. Replaces any earlier activation and empties the inboxes. -
allowsSchedule(
String name) → bool -
Whether the scheduled task
namemay run. Outside a preview, always; in one, only when declared underdartvel.preview.schedules, and a refusal is reported. -
captureMail(
DVMailMessage message) → Future< void> -
Captures
messageinstead of sending it. -
captureNotification(
String recipient, DVNotificationMessage message, DVNotificationProviderKind provider) → Future< void> - Captures a notification a provider would have delivered.
-
deactivate(
) → void - Stops capturing. For tests; a preview process never leaves preview, and one whose environment says so keeps capturing.