clearCachedFiles static method

Future<bool> clearCachedFiles()

Implementation

static Future<bool> clearCachedFiles() async {
  try {
    await FilePicker.platform.clearTemporaryFiles().then((value){
      return value;
    });
  }
  on PlatformException catch (e) {
    console.error('Unsupported operation Clear: $e');
  }
  catch (e) {
    console.error('Clear: $e');
  }
  return false;
}