-2

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

Question image

jamesdlin
  • 81,374
  • 13
  • 159
  • 204
  • 2
    Can 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 Answers1

0

Try to modify constructor

TextFieldDatos(
  this.iconoPrima,
  this.texto,
  this.ocultar,
  this.subTexto,
  this.iconoSecon);
ClarkCluster
  • 446
  • 4
  • 7