DVPreviewConfig class final

dartvel.preview.

Constructors

DVPreviewConfig({DVPreviewDatabase database = DVPreviewDatabase.fresh, String? sanitize, Duration ttl = const Duration(days: 7), Duration idle = const Duration(minutes: 30), int max = 10, DVPreviewVisibility visibility = DVPreviewVisibility.members, Set<String> schedules = const <String>{}})
const
DVPreviewConfig.fromConfig(Map<Object?, Object?>? preview)
Reads the dartvel.preview map. Null is the defaults.
factory

Properties

database → DVPreviewDatabase
final
hashCode → int
The hash code for this object.
no setterinherited
idle → Duration
How long a preview may go unrequested before it is suspended.
final
max → int
How many previews may be running at once.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sanitize → String?
The sanitization step that runs over a branched database before the preview is deployed. Present exactly when database is branch.
final
schedules → Set<String>
Scheduled tasks declared to run in previews. Every other schedule is off, reported as DV-PREVIEW-008.
final
ttl → Duration
How long after its last deploy a preview is destroyed.
final
visibility → DVPreviewVisibility
final

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