Stephan E.G. Veenstra
Stephan E.G. Veenstra
If I understand correctly, you DON'T want to maintain state of the tabs? Did you use this project as your base? Because this specifically addresses that problem (from the README)....
I've made a fork to try this out, maybe you want to take a look? https://github.com/SEGVeenstra/equatable
> @SEGVeenstra Nice work! I like the way you've maintained compatibility. The only thing I'd change is the new lines for each parameter as it would be very chatty on...
@JamesMcIntosh I've changed it to a single line: https://github.com/SEGVeenstra/equatable/tree/propsMap
> @SEGVeenstra @JamesMcIntosh out of curiosity why not just override toString at that point haha? 🤔 Maybe to get consistency and being able to get the string recursively? I'll think...
> > > @SEGVeenstra @JamesMcIntosh out of curiosity why not just override toString at that point haha? > > > > 🤔 > > > > Maybe to get consistency...
The thing is that in your example you have to override props AND toString. With propsMap you don't have to include props because it will take them from the propsMap....
> Also, fwiw runtimeType will be different in release mode and it won't be the class name in production builds. Didn't know that, what will it be in release?
It would become this: ```dart class Person extends Equatable { const ({required this.name, required this.age}); final String name; final int age; @override Map get propsMap => {'name': name, 'age': age};...
My Kotlin is awefull so I asked ChatGPT to "Fix the code in a way it wouldn't block the UI" and it added coroutines. Not it's no longer blocking the...