parent method

Implementation

Future<StorageBucketModel?> parent() async {
  try {
    String parentPath = Directory(folderPath).parent.path;
    return StorageBucketModel.fromPath(parentPath);
  } catch (e) {
    return null;
  }
}