bottom property

  1. @override
Border bottom
override

Represent the bottom border.

Implementation

@override
Border get bottom {
  if (_bottom == null) {
    final List<Border?> borders = <Border?>[];
    for (final Borders border in _bordersCollection) {
      borders.add(border.bottom);
    }
    _bottom = CellBorderWrapper(borders);
  }
  return _bottom!;
}
  1. @override
void bottom=(Border value)
override

Represent the bottom border.

final Workbook workbook = Workbook();
final Worksheet sheet = workbook.worksheets[0];
final Style style = workbook.styles.add('style');
// set borders line style and color.
style.borders.bottom.lineStyle = LineStyle.thick;
style.borders.bottom.color = '#9954CC';
final Range range1 = sheet.getRangeByIndex(3, 4);
range1.number = 10;
range1.cellStyle = style;
final List<int> bytes = workbook.saveAsStream();
File('CellStyle.xlsx').writeAsBytes(bytes);
workbook.dispose();

Implementation

@override
set bottom(Border value) {
  final int last = _arrRanges.length;
  for (int index = 0; index < last; index++) {
    final Range range = _arrRanges[index];
    range.cellStyle.borders.bottom = value;
  }
}