Open Raviteja11122 opened 2 years ago
lastDetails
is nullable and can be null if no data was requested from the server or if there was an error in the communication.
You can't use the field before the first successful request.
I was generating dummy data in the above example there is no api call involved
Me too. i've got same error message "Unexpected null value" when changing rows per page in Flutter web.
I've got solution for my case by calling notifyListeners() inside onRowsPerPageChanged. Thx.
Same as @Raviteja11122 , im using dummy data. When first showing the page the exception is thrown, solved it by wrapping everything with check if lastDetails is not null