Explorar o código

add type notation

xuty %!s(int64=4) %!d(string=hai) anos
pai
achega
68a6b63c32
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/utli/lookup_table.dart

+ 1 - 1
lib/utli/lookup_table.dart

@@ -22,7 +22,7 @@ class FastLookupTable<T> {
   late final List<T?> _table;
   late final int _maxIndex;
 
-  operator [](int index) {
+  T? operator [](int index) {
     if (index > _maxIndex) {
       return null;
     }