setLabel method

Future<void> setLabel(
  1. String label
)

Update the label of this

Example :

await webhook.setLabel('My webhook name');

Implementation

Future<void> setLabel (String label) async {
  Response response = await ioc.use<HttpService>().patch(url: "/webhooks/$id", payload: { 'name': label });

  if (response.statusCode == 200) {
    _label = label;
  }
}