Lasse R.H. Nielsen
Lasse R.H. Nielsen
> how would a bunch of Disposables interact with each other when they all live in their own scope? Scope nesting works for that. If a scope is entered, then...
Dart does not allow access to a variable inside its own initialializer. (This is unrelated to cascades, so I've updated the title to the more general situation). It is usually...
You are suggesting that an assignment to a cascade expression would perform the assignment to the receiver value prior to evaluating the cascade sections? That is possible, but somewhat inconsistent....
You can implement something like that yourself, as: ```dart extension WithSelf on T { R apply(R Function(T) onSelf) => onSelf(this); } ``` Then you can write: ```dart final WebViewController controller...
I'd just not do anything. It's weird, and technically a way to distinguish whether a function is invoked with or without an argument (since they cannot pass `null` explicitly), but...
Apparently, this has never been a problem for anyone. Either they all have default values where they need it, or they don't, and they don't mind the `null`. We have...
OK, we have several options. The current specification is under-specified - it says "use default value", but doesn't cover case where there is no default value. That makes the current...
As an alternative, we could make an omitted return type mean `void`. That might actually be useful, and meaningful: A function with no return type does not return anything. We...
The main reason there is no negation of a pattern match, is that most pattern matches include capture variables, which are only available on the positive branch. You have a...
The closest thing is a mixin, but mixins cannot have the constructor you need. ```dart mixin MyProperty { bool property = false; } class FooWithProperty extends Foo with MyProperty {...