RefKey<T> constructor
Null safety
- Ref ref,
- 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);
}