I have the following code In my use case I have some business logic to determines whether I need to refresh a users access token or not. Based on t ...
I have the following code In my use case I have some business logic to determines whether I need to refresh a users access token or not. Based on t ...
Since I found the solution hidden of my problem in the comments, I am putting it here in a more prominent place: Problem: I received the above error ...
How do I correctly initialize my Either object in the following code? class JobListState extends Equatable { const JobListState({ this.status = ...
I'm trying to get the String 'bairro' from this part of code: var infoCepJSON = await viaCepSearchCep.searchInfoByCep(cep: '$_cep') But, its return ...
I am using dartz package to return different types from a method, but the problem is I can't return an exception. here is the code below: ...
Thais is my json format i use json_serializable, dio, and json_annotation want to be mapped with modal and ResponseMapper I am using json_serializ ...
This is my first try to write a test. I use the Dartz package and I don't know how to get just one part as a result of my test. The error is: Expe ...
I have the following problem... emit was called after an event handler completed normally. This is usually due to an unawaited future in an event ...
I had weird problem on which I spend few hours. I have a bloc file in which I'm using dartZ to easier maintain errors. When I was using bloc like this ...
I am migrating my project to the new version of Flutter and I use the BloC package. As you know Bloc has been updated and it has changed most of its c ...
How to obtain only the right hand side value from dartz? the code is the output is: How to get the value of hi without "Some(Right" ? ...
I want to do something similar to a Either.map5 on several Either types. But, instead of keeping just the first Left in case of my Eithers being Left, ...
I am stuck at this exception . I am trying to create a Number Trivia app based on course on you tube basically i'm handling errors and exceptions wi ...
iam using riverpod with dartz , nad iam facing a problem that when using a future provider with my function i can't get my hand on the either as well ...
I have this method as my repository: Now I want to use fold method here: But I got this error: ...
I recently made the switch to null-safety in my flutter project, which brings a new kind of problem when using the Either type (from the dartz package ...
i am trying to understand dartz, but the documentation is not clear enough. i need to get the difference between either and Option in dartz? VS ...
Is possible that some can explain to me what's going on here. I completely new to flutter and dart programming and I have started a video tutorial on ...
I moved my project to the sdk 2.12 and trying to update my code with the non-nullable crap. Now I don't understand how to fix things in Dartz package ...
I am currently setting up a phone number verification in flutter with the dartz package. My firebase_auth_facade.dart inherits from my i_auth_facade.d ...