Why do Flutter widgets like Text do not offer a copyWith()?

44 Views Asked by At

For creating a new and slightly modified instance of a class in dart we often have or can create a copyWith method. In Flutter this exists for example in things like TextTheme or MediaQueryData, but not in widgets like Text or ElevatedButton. So it seems this is a deliberate design choice. What are the reasons for this?

0

There are 0 best solutions below