Jelajahi Sumber

add type notation

xuty 4 tahun lalu
induk
melakukan
bb330e0623
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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]);
   }
 }