SimpleNodeProvider constructor
SimpleNodeProvider([
- Map? m,
- Map<
String, NodeFactory> ? profiles
Creates a SimpleNodeProvider.
If m and optionally profiles is specified,
the provider is initialized with these values.
Implementation
SimpleNodeProvider([Map? m, Map<String, NodeFactory>? profiles]) {
// by default, the first SimpleNodeProvider is the static instance
instance ??= this;
root = SimpleNode('/', this);
nodes['/'] = root;
defs = SimpleHiddenNode('/defs', this);
nodes[defs!.path] = defs!;
sys = SimpleHiddenNode('/sys', this);
nodes[sys!.path] = sys!;
init(m, profiles);
}