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