hasPath method Null safety

bool hasPath(
  1. String distroName
)

Check if distro has path in settings @param {String} distroName

Implementation

bool hasPath(String distroName) {
  String? distroLocation = prefs.getString('Path_$distroName');
  if (distroLocation == null) {
    return false;
  }
  return true;
}