Merhaba arkadaşlar.
class Personel{
String ad;
String soyad;
int kidem;
String durum;
Personel(String ad, String soyad, int kidem){
this.ad = ad;
this.soyad = soyad;
this.kidem = kidem;
this.durum = durum;
}
}
Aldığım hata:
: Error: Field 'ad' should be initialized because its type 'String' doesn't allow null.
lib/personeller.dart:2
String ad;
^^
: Error: Field 'soyad' should be initialized because its type 'String' doesn't allow null.
lib/personeller.dart:3
String soyad;
^^^^^
: Error: Field 'kidem' should be initialized because its type 'int' doesn't allow null.
lib/personeller.dart:4
int kidem;
^^^^^
Nasıl çözebilirim?