DiagramContentDefinition constructor
DiagramContentDefinition({
- required ShapeContentLayoutProvider layout,
- required DiagramContentCodec codec,
Implementation
DiagramContentDefinition({required this.layout, required this.codec}) {
if (layout.type.trim().isEmpty ||
layout.type != layout.type.trim() ||
layout.type != codec.type) {
throw ArgumentError(
'Content layout and codec must share one valid type.',
);
}
}