ConnectorLineSettings constructor

const ConnectorLineSettings({
  1. String? length,
  2. double? width,
  3. ConnectorType? type,
  4. Color? color,
})

Creating an argument constructor of ConnectorLineSettings class.

Implementation

const ConnectorLineSettings({
  this.length,
  double? width,
  ConnectorType? type,
  this.color,
}) : width = width ?? 1.0,
     type = type ?? ConnectorType.line;