본문 바로가기
Development Solutions/Flutter & Dart

[flutter] Copying a list (deep copy) (리스트를 복사하기(깊은 복사))

by studio ODOC 2021. 11. 1.
반응형

[flutter]

Copying a list (deep copy)

(리스트를 복사하기(깊은 복사))



List.from을 이용해서 복사하면 깊은 복사가 이루어진다.
[English](Copying using List.from makes a deep copy.)

    this.reviews = List.from(reviews);

https://stackoverflow.com/questions/63091889/flutter-firebase-get-array-from-firestore-and-assign-it-to-a-list

 

flutter firebase get array from Firestore and assign it to a list

I have a collection in Firestore. It has a field array i am trying to get the array from Firestore and assign it to a list in flutter. My collection is as below My code for getting data from Fires...

stackoverflow.com

 

반응형