ComponentData constructor
ComponentData({})
Represents data of a component in the model.
Implementation
ComponentData({
String? id,
this.position = Offset.zero,
this.size = const Size(80, 80),
this.minSize = const Size(4, 4),
this.type,
this.data,
}) : assert(minSize <= size),
id = id ?? const Uuid().v4();