Gviz constructor

Gviz({
  1. String? name,
  2. Map<String, String>? nodeProperties,
  3. Map<String, String>? edgeProperties,
  4. Map<String, String>? graphProperties,
})

Implementation

Gviz(
    {String? name,
    Map<String, String>? nodeProperties,
    Map<String, String>? edgeProperties,
    Map<String, String>? graphProperties})
    : _name = name ?? 'the_graph',
      _edgeProperties = edgeProperties ?? const {},
      _nodeProperties = nodeProperties ?? const {},
      _graphProperties = graphProperties ?? const {} {
  if (!_validName.hasMatch(_name)) {
    throw ArgumentError.value(name, 'name', '`name` must be a simple name.');
  }
}