updateCollection method
Implementation
Future<Collection?> updateCollection(String collectionId, String newname,
List<String>? newpermissions, bool? documentSecurity, bool? enabled) {
try {
Future<Collection> result = databases.updateCollection(
databaseId: config.DATABASEID,
collectionId: collectionId,
name: newname,
permissions: newpermissions,
documentSecurity: documentSecurity,
enabled: enabled);
return result;
} on AppwriteException catch (e) {
print(e.toString());
return Future.value(null);
}
}