isValidLocalImageHelper function

Future<bool> isValidLocalImageHelper(
  1. String path
)

Implementation

Future<bool> isValidLocalImageHelper(String path) async {
  try {
    final bytes = await File(path).readAsBytes();
    return bytes.isNotEmpty;
  } catch (_) {
    return false;
  }
}