paint method
Implementation
@override
void paint(PaintingContext context, Offset offset) {
final textStyle = TextStyle(color: color);
final lineChar = character.isNotEmpty ? character[0] : '─';
for (int y = 0; y < thickness && y < dividerHeight; y++) {
for (int x = 0; x < size!.width; x++) {
context.buffer.writeStyled(
offset.x + x,
offset.y + y,
lineChar,
textStyle,
);
}
}
}