LocalDynamicCollectionModel constructor

LocalDynamicCollectionModel(
  1. String path, [
  2. List<LocalDynamicDocumentModel>? value
])

Specify the path and use DynamicMap to hold the data LocalCollectionModel.

You don't need to define a class to hold data strictly, so you can develop quickly, but it lacks stability.

Implementation

LocalDynamicCollectionModel(
  String path, [
  List<LocalDynamicDocumentModel>? value,
])  : assert(
        !(path.splitLength() <= 0 || path.splitLength() % 2 != 1),
        "The path hierarchy must be an odd number: $path",
      ),
      super(path, value ?? []);