checkStorage static method

bool checkStorage(
  1. int requiredBytes
)

Check storage availability for a given number of bytes. Convenience wrapper that returns a simple bool.

Implementation

static bool checkStorage(int requiredBytes) {
  final result = checkStorageAvailability(requiredBytes);
  if (result == null) return true; // Default to available if check fails
  return result.isAvailable;
}