📜  dart 扩展列表 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:53.757000             🧑  作者: Mango

代码示例1
import 'dart:collection';

class MyCustomList extends ListBase {
  final List l = [];
  
  set length(int newLength) {
    l.length = newLength;
  }

  int get length => l.length;

  E operator [](int index) => l[index];

  void operator []=(int index, E value) {
    l[index] = value;
  }
}