Skip to content

Commit 5ade549

Browse files
committed
Added support for type-safety
1 parent 1f4bc9d commit 5ade549

34 files changed

Lines changed: 1632 additions & 1646 deletions

lib/constants.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ String enumStringToName(String enumString) {
151151
/// Formats a list of [items] to a comma(,) separated string to pass it as a
152152
/// URL parameter.
153153
String listToUrlString<T>(List<T> items) {
154-
if (items == null || items.length == 0) return '';
154+
if (items.length == 0) return '';
155155

156156
return items.join(',');
157157
}

0 commit comments

Comments
 (0)