copyFromMsg static method

FMixInfo copyFromMsg(
  1. FMixInfoMsg msg
)

Implementation

static FMixInfo copyFromMsg(FMixInfoMsg msg) {
  return FMixInfo()
    ..imageMixItemList =
        UnmodifiableListView(msg.imageMixItemList?.map((item) => FMixItem.copyFromMsg(item)).toList() ?? [])
    ..textMixItemList =
        UnmodifiableListView(msg.textMixItemList?.map((item) => FMixItem.copyFromMsg(item)).toList() ?? []);
}