checkIfLargeFile static method

bool checkIfLargeFile(
  1. String path
)

Implementation

static bool checkIfLargeFile(String path) {

  try {
    final fileSizeInBytes = File(path).lengthSync();

    return fileSizeInBytes > UFUtils.maxAllowedFileSize;
  } catch (e) {
    return false;
  }
}