RefKey<T> constructor

RefKey<T>(
  1. Ref ref,
  2. dynamic key
)

Implementation

RefKey(this.ref, this.key) {
  if (!(ref.value is List || ref.value is Map)) {
    print('app error: RefKey 调用代理的Ref对象的值类型必须是List或者Map!');
    throw TypeError();
  }
  _getKeylist = getKeylist(key);
}