live method

StructLiveList<D, RStruct> live({
  1. List<D>? initial,
  2. bool owned = true,
})

Implementation

StructLiveList<D, RStruct> live({List<D>? initial, bool owned = true}) => .live(
  () => ptr,
  readAt: (_, i) => owned ? this.owned(i) : this[i],
  writeAt: (_, i, v) => this[i] = v,
  initial: initial ?? [],
);