existsAtMostOnce method

WidgetMatcher<W> existsAtMostOnce()

Asserts that at most one widget of type W exists.

Implementation

WidgetMatcher<W> existsAtMostOnce() =>
    WidgetMatcher.fromSnapshot(_exists(max: 1));