Sergio Molchanovsky

Results 117 comments of Sergio Molchanovsky

I checked it again today. You must invoke `SentryFlutter.init()` before Catcher, or it won't send events to Sentry.io. And do all the setup on the `options` object inside `init()` (settings...

> Maybe this example will help you? https://github.com/google/json_serializable.dart/blob/master/example/lib/tuple_example.dart Thanks, this signature is correct: `factory Response.fromJson(Map json, T Function(Object json) fromJsonT) => _$ResponseFromJson(json, fromJsonT);` The problem is that Retrofit doesn't generate...

It is an extension for Dio HTTP client: https://pub.dev/packages/retrofit It is a popular API generator, which we use.

Okay, it is a problem on Retrofit side, and they are aware of it and probably fix it in a next release. Currently I can manually make requests like ```dart...

How to return a deep copy of collection `_users` with 1 room removed? The following code won't work. A Selector will not notice that a collection was changed and will...

@rrousselGit I come up with using kt_dart according to this article: https://levelup.gitconnected.com/flutter-dart-immutable-objects-and-values-5e321c4c654e Still thinking about proper map element removal though... the method in the article is not correct ![image](https://user-images.githubusercontent.com/12999702/89898702-d4117c00-dbe9-11ea-93c3-0d8403c624bf.png)

I took me a whole lot of time, but I found a solution: ![image](https://user-images.githubusercontent.com/12999702/90034443-4efd9400-dcc9-11ea-98f6-b30a01d42309.png)

Here is the problem though. We don't have any null-safety. What if we're trying to access the field that does not exist? Say, if we want to add a room...

At the end I gave up this venture and moved to MobX which has Observable collections, allowing to write code in a mutable style, and it does not need copyWith...

Or I'd suggest to deprecate parameter `enabled` as non-obvious, and introduce `visible: true/false` and `animation: true/false` instead.