ComponentSpec constructor

ComponentSpec(
  1. String type, {
  2. Map<String, PropertyValue>? properties,
  3. Map<String, Object?> unknown = const {},
})

Creates a component of the given type with optional properties.

Implementation

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