getFileByPath static method

File? getFileByPath(
  1. String filePath
)

Implementation

static File? getFileByPath(String filePath) {
  if (filePath.isEmpty) return null;
  return File(filePath);
}