瀏覽代碼

add type notation

xuty 4 年之前
父節點
當前提交
bb330e0623
共有 1 個文件被更改,包括 1 次插入1 次删除
  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]);
   }
 }