Explorar o código

add type notation

xuty %!s(int64=4) %!d(string=hai) anos
pai
achega
bb330e0623
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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]);
   }
 }