Once a selector is saved in a variable, parent and child relationships can't be easily adjusted. It was always possible with copyWith, but now there's an explicit API
final containers = spot<Container>();
containers.existsExactlyNTimes(3);
containers.withParent(spot<Wrap>()).existsOnce();
containers.withParents([spot<Wrap>()]).existsOnce();
containers.withChild(spot<Wrap>()).existsOnce();
containers.withChildren([spot<Wrap>()]).existsOnce();
Once a selector is saved in a variable, parent and child relationships can't be easily adjusted. It was always possible with
copyWith
, but now there's an explicit API