@@ -57,7 +57,6 @@ void checkElementText(
5757 bool withSyntheticFields = false ,
5858 bool withTypes = false ,
5959 bool withTypeParameterVariance = false ,
60- bool annotateNullability = false ,
6160}) {
6261 var writer = _ElementWriter (
6362 selfUriStr: '${library .source .uri }' ,
@@ -70,7 +69,6 @@ void checkElementText(
7069 withSyntheticFields: withSyntheticFields,
7170 withTypes: withTypes,
7271 withTypeParameterVariance: withTypeParameterVariance,
73- annotateNullability: annotateNullability,
7472 );
7573 writer.writeLibraryElement (library);
7674
@@ -140,7 +138,6 @@ class _ElementWriter {
140138 final bool withSyntheticFields;
141139 final bool withTypes;
142140 final bool withTypeParameterVariance;
143- final bool annotateNullability;
144141 final StringBuffer buffer = StringBuffer ();
145142
146143 String indent = '' ;
@@ -156,7 +153,6 @@ class _ElementWriter {
156153 this .withSyntheticFields = false ,
157154 this .withTypes = false ,
158155 this .withTypeParameterVariance,
159- this .annotateNullability = false ,
160156 });
161157
162158 bool isDynamicType (DartType type) => type is DynamicTypeImpl ;
@@ -1176,7 +1172,7 @@ class _ElementWriter {
11761172
11771173 String _typeStr (DartType type) {
11781174 return type? .getDisplayString (
1179- withNullability: annotateNullability ,
1175+ withNullability: true ,
11801176 );
11811177 }
11821178
@@ -1216,7 +1212,7 @@ class _ElementWriter {
12161212 selfUriStr: selfUriStr,
12171213 sink: buffer,
12181214 indent: indent,
1219- withNullability: annotateNullability ,
1215+ withNullability: true ,
12201216 ),
12211217 );
12221218 }
0 commit comments