浏览代码

add type notation

xuty 4 年之前
父节点
当前提交
68a6b63c32
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
     }