Sam Rawlins
Sam Rawlins
Thanks for the suggestion. Methods and extension methods are currently integrated, intentionally, to avoid the converse problem: If you were looking for a method available on a class (you don't...
>> it would become difficult to find the method. > Is that true? We already separate static methods, but I wouldn't say they're more difficult to find. Yes, I think...
> What would you call them instead? Static functions.
Was this resolved for the null-aware elements release? @chloestefantsova
I am certainly out of my depth here 😅 but I think this might be possible. But with a lot of work 🙁 . I can't find an example of...
This sounds right. So in your example above, `foo.someMethod` refers to an extension method. And `fooMock.someMethod` would refer to an _instance_ method on `MockFoo`, right? Mockito just needs to generate...
Ah, I think this won't work. So let's say we have this instance method: ```dart class Foo { String someMethod(int p) => 'hello'; } ``` When creating a stub response...
Yeah that seems like it should work.
+1 To me, the implicit `containsKey` is the big surprise here. Surprises are bad.
Being able to cast to the extension type without any constructor call is very interesting. This issue is not so much about having an ironclad guarantee that validation is run;...