FDottedLine constructor

FDottedLine(
  1. {Key? key,
  2. Color color = Colors.black,
  3. double? height,
  4. double? width,
  5. double dottedLength = 5.0,
  6. double space = 3.0,
  7. double strokeWidth = 1.0,
  8. FDottedLineCorner? corner,
  9. Widget? child}
)

FDottedLine 为开发者提供了创建虚线的能力。同时支持为一个 Widget 创建虚线边框。支持控制虚线的粗细,间距,以及虚线边框的边角。

FDottedLine provides developers with the ability to create dashed lines. It also supports creating a dashed border for a Widget. Support for controlling the thickness, spacing, and corners of the dotted border.

Implementation

FDottedLine({
  Key? key,
  this.color = Colors.black,
  this.height,
  this.width,
  this.dottedLength = 5.0,
  this.space = 3.0,
  this.strokeWidth = 1.0,
  this.corner,
  this.child,
}) : super(key: key) {
  assert(width != null || height != null || child != null);
}