addNewLabel method

Future addNewLabel({
  1. required String labelName,
  2. String? labelColor,
})

Create a new label

Implementation

Future addNewLabel({
  required String labelName,
  String? labelColor,
}) async {
  return await wpClient.evaluateJs(
    '''window.WPP.labels.addNewLabel(${labelName.jsParse}, {
      labelColor: ${labelColor.jsParse}
    });''',
    methodName: "addNewLabel",
  );
}