isSaveinDeviceFromUrl method

Future<bool> isSaveinDeviceFromUrl(
  1. String? type
)

Implementation

Future<bool> isSaveinDeviceFromUrl(String? type) async {
  try {
    if (kIsWeb) {
      return false;
    }

    String path = await ModernFormFileHelper.getFilePathFromUrl(this, type!);
    File file = File(path);
    return file.exists();
  } catch (e) {
    print("ERROR isSaveinDevice() --> $e");
    return false;
  }
}