ReadSingleSnapshot<W extends Widget> extension
Extension on WidgetSelector<W> to provide easy access to the single widget, element, or render object in the current selection.
These convenience methods are intended for use with selectors that are expected to match exactly one widget.
- on
Methods
-
snapshotElement(
) → Element - Convenience getter to access the Element when evaluating the WidgetSelector
-
snapshotRenderObject(
) → RenderObject - Convenience getter to access the RenderObject when evaluating the WidgetSelector
-
snapshotWidget(
) → W - Convenience getter to access the Widget when evaluating the WidgetSelector