In my class it calls _TextField it indicates an initialization error, but I initialize everything in a constructor, in the dart error documentation it mentions a solution, but I do not see the sense because I use constructors to initialize, I could give your opinion please
Asked
Active
Viewed 31 times
-2
-
2Can you add code snippet instead of image? – Md. Yeasin Sheikh Aug 09 '21 at 23:54
-
Does this answer your question? [How do I initialize non-nullable members in a constructor body?](https://stackoverflow.com/questions/66725613/how-do-i-initialize-non-nullable-members-in-a-constructor-body) – jamesdlin Aug 10 '21 at 01:54
1 Answers
0
Try to modify constructor
TextFieldDatos(
this.iconoPrima,
this.texto,
this.ocultar,
this.subTexto,
this.iconoSecon);

ClarkCluster
- 446
- 4
- 7