You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following NoSuchMethodError was thrown building ExploreScreen(dirty, dependencies:
[UncontrolledProviderScope], state: _ExploreScreenState#8fbbe):
Class 'MockMainProductCategoriesNew' has no instance method '_setElement'.
Receiver: Instance of 'MockMainProductCategoriesNew'
Tried calling: _setElement(Instance of 'AutoDisposeNotifierProviderElement<MainProductCategoriesNew,
UIState<List<MainProductCategoryModel>>>')
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following _TypeError was thrown running a test:
type 'Null' is not a subtype of type 'Future<void>'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
this is my provider
I want to write a widget test so I have mocked MainProductCategoriesNew class:
but I got this error:
I also have used mockito :
I got this error :
this is my widget
Beta Was this translation helpful? Give feedback.
All reactions