@@ -143,6 +143,13 @@ class ListViewProperties with SerializableMixin, EquatableMixin {
143143 /// items, if enabled.
144144 DividerProperties dividerProperties;
145145
146+ /// Whether this list view should look for its items in Codelessly Cloud
147+ /// Database directly.
148+ bool useCloudDatabase;
149+
150+ /// The path to the collection in the Cloud Database to look for items in.
151+ String ? collectionPath;
152+
146153 /// Creates a new [ListViewProperties] instance.
147154 ListViewProperties ({
148155 this .itemCount,
@@ -152,6 +159,8 @@ class ListViewProperties with SerializableMixin, EquatableMixin {
152159 this .separatorSpacing = 0 ,
153160 this .hasSeparator = false ,
154161 DividerProperties ? dividerProperties,
162+ this .useCloudDatabase = false ,
163+ this .collectionPath,
155164 }) : dividerProperties = dividerProperties ?? DividerProperties ();
156165
157166 /// Creates a copy of this [ListViewProperties] instance with the given value
@@ -171,6 +180,9 @@ class ListViewProperties with SerializableMixin, EquatableMixin {
171180 double ? dividerSpacing,
172181 bool ? hasSeparator,
173182 DividerProperties ? dividerProperties,
183+ bool ? useCloudStorage,
184+ String ? collectionPath,
185+ bool forceCollectionPath = false ,
174186 }) {
175187 return ListViewProperties (
176188 itemCount: itemCount ?? this .itemCount,
@@ -180,6 +192,9 @@ class ListViewProperties with SerializableMixin, EquatableMixin {
180192 separatorSpacing: separatorSpacing ?? this .separatorSpacing,
181193 hasSeparator: hasSeparator ?? this .hasSeparator,
182194 dividerProperties: dividerProperties ?? this .dividerProperties,
195+ useCloudDatabase: useCloudStorage ?? this .useCloudDatabase,
196+ collectionPath:
197+ forceCollectionPath ? collectionPath : this .collectionPath,
183198 );
184199 }
185200
0 commit comments