existsOnce method

WidgetMatcher<W> existsOnce()

Asserts that exactly one widget of type W exists.

Implementation

WidgetMatcher<W> existsOnce() =>
    WidgetMatcher.fromSnapshot(_exists(min: 1, max: 1));