updateNotificationDialog method

Future<bool?> updateNotificationDialog(
  1. String dialogId,
  2. bool enabled
)

Implementation

Future<bool?> updateNotificationDialog(String dialogId, bool enabled) async {
  Map<Object?, Object?> response = await _chatModule.invokeMethod(UPDATE_NOTIFICATION_DIALOG, [dialogId, enabled]);

  Map<String, Object>? resultMap = HashMap.from(response);
  return resultMap["enabled"] as bool?;
}