From 5e07f1c796546a8af5919f4cd957b7617f6787f2 Mon Sep 17 00:00:00 2001 From: Marya <111139605+MaryaBelanger@users.noreply.github.com> Date: Fri, 21 Feb 2025 10:16:36 -0800 Subject: [PATCH] Minor updates --- src/content/effective-dart/style.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/content/effective-dart/style.md b/src/content/effective-dart/style.md index 12650d8262..08840fffe5 100644 --- a/src/content/effective-dart/style.md +++ b/src/content/effective-dart/style.md @@ -302,8 +302,9 @@ so their parameters must be named so that it's clear what each parameter is for, even if it isn't used. :::version-note -Since Dart 3.7 `_` no longer creates a variable, so you can use `_` for -multiple parameters simultaneously without name collision: +Since Dart 3.7, the [wildcard variable `_`][] no longer creates a variable, so you can +use `_` for multiple parameters simultaneously without name collision: + ```dart tag=good (_, _) { print('error'); @@ -311,6 +312,7 @@ multiple parameters simultaneously without name collision: ``` ::: +[wildcard variable `_`]: /language/variables#wildcard-variables ### DON'T use a leading underscore for identifiers that aren't private