build method

  1. @override
Widget build(
  1. Context context
)
override

Implementation

@override
Widget build(Context context) {
  final height = this.height ?? 16;
  final thickness = this.thickness ?? 1;
  final indent = this.indent ?? 0;
  final endIndent = this.endIndent ?? 0;
  final color = this.color ?? PdfColors.black;
  final borderStyle = this.borderStyle ?? BorderStyle.solid;

  return SizedBox(
    height: height,
    child: Center(
      child: Container(
        height: thickness,
        margin: EdgeInsets.only(left: indent, right: endIndent),
        decoration: BoxDecoration(
          border: Border(
            bottom: BorderSide(
              color: color,
              width: thickness,
              style: borderStyle,
            ),
          ),
        ),
      ),
    ),
  );
}