lifecycle property

DVContextLifecycle get lifecycle

The lifecycles this context is inside.

Only the page one is a page's to have. Reading request or transaction here throws the message those getters already carried, which is the honest answer: a backend function's request and a transaction's progress are not facts about a widget.

Implementation

DVContextLifecycle get lifecycle => DVContextLifecycle(
      page: DVPageLifecycleScope.maybeOf(this),
    );