title: How to reset File type variable in dart / flutter with NULL Safety?
body: <p>I have initialized a <code>File</code> type variable in my Flutter Dart class as:</p>
  <pre><code>late File _image;
  </code></pre>
  <p>then I have assigned picked image from gallery to this variable eg.</p>
  <pre><code>_image = File(pickedFile.path);
  </code></pre>
  <p>I have displayed this image by using <code>_image</code> variable on the screen which is ok. I have a button delete button, which is used to remove selected image then need to re-pick new image. So I will have to reset this <code>_image</code> variable on delete button click.</p>
  <p>Is there anyone who can help and suggest me. How can I reset this <code>_image</code> variable in NULL SAFETY in dart / flutter. Thanks a lot.</p>