Parcourir la source

add type notation

xuty il y a 4 ans
Parent
commit
bb330e0623
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib/utli/circular_list.dart

+ 1 - 1
lib/utli/circular_list.dart

@@ -170,6 +170,6 @@ class CircularList<T> {
   bool get isFull => length == maxLength;
 
   List<T> toList() {
-    return List.generate(length, (index) => this[index]);
+    return List<T>.generate(length, (index) => this[index]);
   }
 }