Closed triallax closed 2 years ago
Hi!
What's the use-case? 😄
I mainly would like this feature for acronyms at the beginning of the widget's name.
I don't understand
Do you have an example?
Here's an example:
Widget ioWidget() => // Whatever;
This generates a widget with the name IoWidget
. I would want the widget to have the name IOWidget
. It is possible to use iOWidget
as the function name, but it looks ugly.
Also, I think this would fix #42 because one can use a public widget name for a private function, but I don't like this because one will have to sync the function name and the class name.
I see
Feel free to make a pull request 😄
I'll see if I can do it!
I took a stab at this and I wasn't able to do it unfortunately, and I'm a little busy. If anybody would like to fix this issue, go ahead!
In retrospect, this doesn't look that necessary to me anymore. I did say that
It is possible to use
iOWidget
as the function name, but it looks ugly.
but honestly, that doesn't seem like a strong enough reason to add this.
Maybe something like this: