You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the StyleClass widget add new style using methods, there is no way of making it a const. That is because changes is made through the methods instead of being defined in the constructor. I dont know the exact performance difference, but it may be significant. Everything would have to be defined in the constructor like:
Personally, I'd rather see the new constructor system on styles / gestures separately (not directly on the Division widget) because the separation between styles, gestures and children is what currently makes division cool imho!
Also, I think that the (double) dotted methods could still be cool to use here and there without overdoing so, so maybe they could stay along with the possibility of directly using constructors where needed.
Since the
StyleClass
widget add new style using methods, there is no way of making it aconst
. That is because changes is made through the methods instead of being defined in the constructor. I dont know the exact performance difference, but it may be significant. Everything would have to be defined in the constructor like:or even
Dart that could change help:
The text was updated successfully, but these errors were encountered: