Follow Us

Solved - Non nullable instance field must be initialized flutter

Click on the below button and follow us for instant updates of our feed


If you are facing this error why working on your flutter project, the below is the solution

Example code you might be initializing before you get the error




int count = 0; or int count ;

SOLUTION

Use the late keyword:

late int count; // No error

Click on the below button and follow us for instant updates of our feed




About Wakabia

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment

Download Real Estate E-book

Recent Comments