Benjamin

Results 104 comments of Benjamin

I like the idea of being able to import things into the top level scope. In Java (and surely in other languages too), you'd use a asterisk (*) to denote...

What would be the difference between defining a global method with the same signature as one defined in the class if we don't keep the leading `.`? ```dart EdgeInsets all(double...

I've been writing some C# lately, and when coming back to Dart, I really don't like having to add parenthesis to a single callback param. Writing `e => e` is...

Came across this today with `WebViewController` via `webview_flutter`. ```dart final WebViewController controller = WebViewController() .. // ... ..setNavigationDelegate( NavigationDelegate( onPageFinished: (url) { controller.runJavascript(); // "Local variable 'controller' can't be referenced...

I think that `guard` is pretty readable, and of course that if statement is also readable! ```dart void hello() { guard (context.mounted) else { return; } // This is being...

What about `if (expr !case var v)` instead of wrapping the whole thing in parentheses? (or `case!` to be more inline with `is!`)

> This issue is replicable by reading from a secure storage(keychain) when a device is locked and has a passcode. > > It can be fixed with: > > ```...

I have a different use case where I want access to the raw string before converting it to an enum like so: ```dart @JsonEnum() enum Foo { one, two }...

Now that Flutter 3.27 has hit stable as of today, this issue will be way more prevalent.

This issue is fixed in 3.27.2 @mrmodh10