File tree Expand file tree Collapse file tree
devtools_app/lib/src/shared/console/eval
devtools_shared/lib/src/extensions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,9 +94,7 @@ Future<List<String>> autoCompleteResultsFor(
9494 }
9595 } catch (_) {}
9696 }
97- return result.nonNulls
98- .where ((name) => name.startsWith (parts.activeWord))
99- .toList ();
97+ return result.where ((name) => name.startsWith (parts.activeWord)).toList ();
10098}
10199
102100// Due to https://github.com/dart-lang/sdk/issues/46221
@@ -197,7 +195,7 @@ Future<Set<String>> _libraryMemberAutocompletes(
197195 final members = functions.map (
198196 (funcRef) => funcRef.name! .replaceAll ('=' , '' ),
199197 );
200- result.addAll (members.nonNulls );
198+ result.addAll (members);
201199 }
202200 final classes = library.classes;
203201 if (classes != null ) {
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ class DevToolsExtensionConfig implements Comparable<DevToolsExtensionConfig> {
3939 nameKey: final String name,
4040 issueTrackerKey: final String issueTracker,
4141 versionKey: final String version,
42- // ignore: avoid-unnecessary-type-assertions, this can be a String or an int
4342 materialIconCodePointKey: final Object codePointFromJson,
4443 // The expected keys below are not from the extension's config.yaml
4544 // file; they are generated during the extension detection mechanism
You can’t perform that action at this time.
0 commit comments