Non-nullable instance field ' 에러코드 " must be initialized.
Try adding an initializer expression, or add a field initializer in this constructor, or mark it 'late'. "
원인
해결방안
오류코드 앞에 "late" 사용
class Home extends StatelessWidget {
Home({Key? key}) : super(key: key);
late ButtomNavigationProvider _bottomNavigationBar;
// 원본 class Bottom extends StatelessWidget { Bottom({Key? key}) : super(key: key); ButtomNavigationProvider _bottomNavigationBar;
Non-nullable instance field ' 에러코드 " must be initialized. Try adding an initializer expression, or add a field initializer in this constructor, or mark it 'late'. "
원인
해결방안
오류코드 앞에 "late" 사용
class Home extends StatelessWidget { Home({Key? key}) : super(key: key); late ButtomNavigationProvider _bottomNavigationBar;