Browse Source

add type notation

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