fetchResourceGroups method
Implementation
Future<List<ResourceGroup>> fetchResourceGroups() async {
try {
final response = await _client.listResourceGroups(ListResourceGroupsRequest());
return response.resourceGroups;
} catch (e) {
print('Caught error in createGroup: $e');
rethrow;
}
}