Good afternoon.
Do you know if there is in Flutter something similar to the .NET Tag property or the Qt setProperty property? Basically I want to be able to assign an object, string… to any widget in Flutter.
Thank you very much.
Good afternoon.
Do you know if there is in Flutter something similar to the .NET Tag property or the Qt setProperty property? Basically I want to be able to assign an object, string… to any widget in Flutter.
Thank you very much.
2
Answers
I have found a solution that I like better. It is the Extension methods, a way to add functionalities to a library knowing nothing about its internal implementation. An example in my case:
Usage:
A basic example, as a followup to the comments:
And to use it, you can do: