RuntimeDynamicCollectionModel constructor
RuntimeDynamicCollectionModel(
- String path, [
- List<
RuntimeDynamicDocumentModel> ? 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
RuntimeDynamicCollectionModel(String path,
[List<RuntimeDynamicDocumentModel>? value])
: assert(!(path.splitLength() <= 0 || path.splitLength() % 2 != 1),
"The path hierarchy must be an odd number."),
super(path, value ?? []);