From c3a6750d52572d45cda620bf2f33e4d8bdf60d5f Mon Sep 17 00:00:00 2001 From: Antonio Aversa Date: Thu, 3 Oct 2024 17:09:21 +0200 Subject: [PATCH] Modify rule S7105: Fix ellipses escaping in rule description --- rules/S7105/dart/rule.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/S7105/dart/rule.adoc b/rules/S7105/dart/rule.adoc index 19dd197b07a..14855339122 100644 --- a/rules/S7105/dart/rule.adoc +++ b/rules/S7105/dart/rule.adoc @@ -1,6 +1,6 @@ == Why is this an issue? -Nullability of types is an important part of Dart's type system. In order to simplify the work with nullable types in the Dart language there are many null-aware operators (`??`, `??=`, `?.`, `!`, `?..`, `?[]`, `...?`). Using those operators will make your code more clear and concise. +Nullability of types is an important part of Dart's type system. In order to simplify the work with nullable types in the Dart language there are many null-aware operators (`??`, `??=`, `?.`, `!`, `?..`, `?[]`, ``++...?++``). Using those operators will make your code more clear and concise. The If-null operator (`??`), will check if the value on the left side is `null`, and, if yes, will return the expression on the right. This is an easy way to set default values instead of dealing with `null`. Thus, this operator doesn't make sense if used with `null` on either sides.