ComponentSpec constructor

ComponentSpec(
  1. String type, {
  2. Map<String, PropertyValue>? properties,
})

Creates a component of the given type with optional properties.

Implementation

ComponentSpec(this.type, {Map<String, PropertyValue>? properties})
  : properties = properties ?? {};