type<T extends Widget> static method

WidgetMatcher type<T extends Widget>()

Matches the first widget of type T on the screen.

Implementation

static WidgetMatcher type<T extends Widget>() =>
    (widget) => widget is T;