Skip to content

Commit 921b278

Browse files
♻️ Use enum entry's name (#2976)
1 parent 394dd8d commit 921b278

File tree

1 file changed

+1
-2
lines changed
  • packages/go_router_builder/example/lib

1 file changed

+1
-2
lines changed

packages/go_router_builder/example/lib/main.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,7 @@ class PersonScreen extends StatelessWidget {
225225
in person.details.entries)
226226
ListTile(
227227
title: Text(
228-
// TODO(kevmoo): replace `split` with `name` when min SDK is 2.15
229-
'${entry.key.toString().split('.').last} - ${entry.value}',
228+
'${entry.key.name} - ${entry.value}',
230229
),
231230
trailing: OutlinedButton(
232231
onPressed: () => PersonDetailsRoute(

0 commit comments

Comments
 (0)