Omar Kamel

Results 206 comments of Omar Kamel

That makes me think of: ```dart extension on T { R map(R Function(T) cb) => cb(this); } ``` I do think that there is value to the proposed syntax Its...

An interesting conundrum. We _could_ go with an expression without a semicolon, like Rust does - though I'm not especially a fan of implicit returns, so I'm not sure. We...

i'd use that other issue by doing ```dart ref.listen(somethingProvider, (previous, next) { if (next case AsyncError err) { showSnackBar(...) } }); Column(children: [ // reloading means `isLoading && (hasValue ||...

not _directly_ but you can just serialize whatever through messages; ```dart controller.webMessage.listen((message) { print('Web message received $message'); }); controller.executeScript('window.chrome.webview.postMessage()'); ``` you could make your own register thing if you want...

It sounds like you want: ```dart @riverpod class Counter extends _$Counter { static final updateMutation = Mutation(); @override int? build() => null; Future update() async => updateMutation.run(ref, (tsx) async {...

While I agree with your idea here, especially since an always alive provider may not necessarily be initialized at the start, allowing the upstream providers to dispose at-will until then,...