diff --git a/lib/src/style.dart b/lib/src/style.dart index 004b32f4e7..d400eb6b0c 100644 --- a/lib/src/style.dart +++ b/lib/src/style.dart @@ -664,7 +664,7 @@ enum ListStyleType { factory ListStyleType.fromName(String name) { return ListStyleType.values.firstWhere((value) { return name == value.counterStyle; - }); + }, orElse: () => ListStyleType.disc); } }