top property

  1. @override
Border get top
override

Represents the top border.

Implementation

@override
// ignore: unnecessary_getters_setters
Border get top {
  return _top;
}
  1. @override
set top (Border value)
override

Represent the top 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.all.lineStyle = LineStyle.thick;
style.borders.all.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
// ignore: unnecessary_getters_setters
set top(Border value) {
  _top = value;
}