current property

DVAnalyticsRuntime get current

The configured runtime.

Throws until one is started. An application that never declared analytics has no policy, and a pipeline invented for it would either record everything or nothing without saying which.

Implementation

static DVAnalyticsRuntime get current =>
    _current ??
    (throw StateError(
        'DV.Analytics is not configured. Declare dartvel.analytics, with a '
        'consent policy, in pubspec.yaml; the generated runtime starts it '
        'from there.'));