privateName property
If this field formal parameter is a named parameter with a private name, the original private name.
In that case, name is the corresponding public name for the parameter
and privateName is the original declared name. Otherwise (the declared
name wasn't private or was private but has no corresponding public name),
then, privateName is null.
The private name is used for:
-
Accessing the parameter in the initializer list.
-
Finding the corresponding instance variable.
-
Referring to the parameter in the constructor's doc comment.
Implementation
@experimental
String? get privateName;