removeGadget method
Removes a dashboard gadget from a dashboard.
When a gadget is removed from a dashboard, other gadgets in the same column are moved up to fill the emptied position.
Permissions required: None.
Implementation
Future<dynamic> removeGadget(
{required int dashboardId, required int gadgetId}) async {
return await _client.send(
'delete',
'rest/api/3/dashboard/{dashboardId}/gadget/{gadgetId}',
pathParameters: {
'dashboardId': '$dashboardId',
'gadgetId': '$gadgetId',
},
);
}