expectNotLoadingNamed function
Assert that a named loading key is not active in a NyPage/NyState widget.
Example:
expectNotLoadingNamed(tester, find.byType(MyPage), 'fetchUsers');
Implementation
void expectNotLoadingNamed(WidgetTester tester, Finder finder, String name) {
final state = _findNyBaseState(finder);
expect(
state.isLoading(name: name),
isFalse,
reason: 'Expected loading key "$name" to not be active',
);
}