byKey method

Finder byKey(
  1. Key key, {
  2. bool skipOffstage = true,
})

Finds components by searching for one with a particular Key.

Sample code

expect(find.byKey(backKey), findsOneComponent);

Implementation

Finder byKey(Key key, {bool skipOffstage = true}) => _KeyFinder(key);