defaultNotificationMode method

Future<String> defaultNotificationMode(
  1. bool isEncrypted,
  2. bool isOneOnOne
)

default RoomNotificationMode for the selected features

Implementation

Future<String> defaultNotificationMode(
  bool isEncrypted,
  bool isOneOnOne,
) {
  final tmp1 = isEncrypted;
  final tmp3 = isOneOnOne;
  var tmp0 = 0;
  var tmp2 = 0;
  var tmp4 = 0;
  tmp0 = _box.borrow();
  tmp2 = tmp1 ? 1 : 0;
  tmp4 = tmp3 ? 1 : 0;
  final tmp5 = _api._notificationSettingsDefaultNotificationMode(
    tmp0,
    tmp2,
    tmp4,
  );
  final tmp7 = tmp5;
  final ffi.Pointer<ffi.Void> tmp7_0 = ffi.Pointer.fromAddress(tmp7);
  final tmp7_1 = _Box(_api, tmp7_0,
      "__NotificationSettings_default_notification_mode_future_drop");
  tmp7_1._finalizer = _api._registerFinalizer(tmp7_1);
  final tmp6 = _nativeFuture(
      tmp7_1, _api.__notificationSettingsDefaultNotificationModeFuturePoll);
  return tmp6;
}