Request details:
I'm looking for a utility class that takes in a flutter widget and copies all non null properties to a new one. This can be done with a mapper but I want to be able to do this across multiple widgets and mappers would be inefficient.
Requests:
Use this library [login to view URL] and example usage [login to view URL]
supports deep cloning
prefer a single function that accepts a generic input
I have done a quick look at solving this and can provide an initial overview of the hurdles I faced. Prefer a developer that has some working knowledge of compiler and optimization as the initial solution will not be efficient.
Deliverables:
A dart file that takes a widget as input and creates a copy of it using reflection