We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f57c867 commit 38f7714Copy full SHA for 38f7714
packages/go_router_builder/lib/src/route_config.dart
@@ -130,14 +130,12 @@ class RouteConfig {
130
InterfaceElement classElement, {
131
required String keyName,
132
}) {
133
- bool whereStatic(FieldElement element) => element.isStatic;
134
- bool whereKeyName(FieldElement element) => element.name == keyName;
135
final String? fieldDisplayName = classElement.fields
136
- .where(whereStatic)
137
- .where(whereKeyName)
138
.where((FieldElement element) {
139
final DartType type = element.type;
140
- if (type is! ParameterizedType) {
+ if (!element.isStatic ||
+ element.name != keyName ||
+ type is! ParameterizedType) {
141
return false;
142
}
143
final List<DartType> typeArguments = type.typeArguments;
0 commit comments