Browse Source

add type notation

xuty 4 năm trước cách đây
mục cha
commit
bb330e0623
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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]);
   }
 }