title: How to temporarily store image in a file in flutter?
body: <p>I want to store an image temporarily and get the file path and so I can store the image in firebase and then delete the temporary file. I saw some posts saving the image in file as bytes. But how will I save it in firebase storage then?
  Any suggestions?</p>
  <pre><code>Container(
                      child: SfSignaturePad(
                        key: _signaturePadKey,
                        minimumStrokeWidth: 1,
                        maximumStrokeWidth: 3,
                        strokeColor: Colors.blue,
                        backgroundColor: Colors.grey,
                      ),
                      height: 200,
                      width: 300,
                    ),
  
  
                    Row(
                        children: [
  Text('clear image', style: kTextFieldReg,),
                          SizedBox(height:4, width: 4 ),
                          IconButton(onPressed: ()
  
                             async {
                               _signaturePadKey.currentState.clear();
  
                            // Navigator.push(context, MaterialPageRoute(
                            //     builder: (context) =&gt; ScreenTwo()));
                          }, icon: CircleAvatar(
                              backgroundColor: Color(0xff660B21),
                              radius: 19,
                              child: ClipOval(
  
                                child:Icon((Icons.close), color: Colors.white, ))
                          )) ]
  
  
                    ),
                    SizedBox(width: 20, height: 20,),
                    ElevatedButton(
  child: Text(
    'Add',
    style: TextStyle(color: Colors.white),
  ),
                      style: ElevatedButton.styleFrom(
                          minimumSize: Size(150, 60), primary: Color(0xff660B21),),
                      onPressed: () async{
             // NEED TO STORE THIS IMG TEMPORARILY ANS GET ITS FILE PATH
                        ui.Image image = await _signaturePadKey.currentState.toImage(pixelRatio: 3);
                        
                        if (_formKey.currentState.validate()) ...
  </code></pre>