setTempDirectory method

Future setTempDirectory()

now that all basic functionality is done ..but we still need some optimization and we can see that our static functions are async and due to that reason it would be hard to load data quickly while calling them Future method for App document local directory create object and set temporary directory once and than u can read/write or delete file without using Future

Implementation

///Future method for App document local directory
///create object and set temporary directory once and than u can read/write or delete file without using Future
Future setTempDirectory() async{
  var tempDir = await getApplicationDocumentsDirectory();
  tempDirectory = tempDir;
}