FirestoreDynamicCollectionModel constructor
FirestoreDynamicCollectionModel(
- String path, [
- List<
FirestoreDynamicDocumentModel> ? value
Specify the path and use DynamicMap to hold the data FirestoreCollectionModel.
You don't need to define a class to hold data strictly, so you can develop quickly, but it lacks stability.
Implementation
FirestoreDynamicCollectionModel(
String path, [
List<FirestoreDynamicDocumentModel>? value,
]) : assert(
!(path.splitLength() <= 0 || path.splitLength() % 2 != 1),
"The path hierarchy must be an odd number: $path",
),
super(path, value ?? []);