canMute method

Future<bool> canMute({
  1. required String phone,
})

to check if we canMute phone number

Implementation

Future<bool> canMute({required String phone}) async {
  final result = await wpClient
      .evaluateJs('''window.WPP.chat.canMute(${phone.phoneParse});''',
          methodName: "CanMute");
  return result == true || result?.toString() == "true";
}