This used to work completely great. However, when I opened my app today I started getting the error below:
======== Exception caught by widgets library =======================================================
The following _TypeError was thrown building Consumer<UserModal>(dirty, dependencies: [MediaQuery, _InheritedProviderScope<UserModal?>]):
Null check operator used on a null value
The relevant error-causing widget was:
Consumer<UserModal> Consumer:
The error points to the return Consumer<UserModal>(builder: (context, modal, child) { line
This used to work completely great. However, when I opened my app today I started getting the error below:
The error points to the
return Consumer<UserModal>(builder: (context, modal, child) {
lineAnd my UserModal looks as below
I was using 6.0.2. I upgraded it to 6.1.2. Yet the issue is still there. What should I do?