ancestor property

T get ancestor

A reference to an ancestor in the component tree.

Implementation

T get ancestor => _ancestor!;