setMargins method

  1. @override
void setMargins(
  1. int top, [
  2. int? bottom
])
override

Implementation

@override
void setMargins(int top, [int? bottom]) {
  final effectiveBottom = bottom ?? viewHeight - 1;
  if (top >= effectiveBottom) return;
  _buffer.setVerticalMargins(top, effectiveBottom);
  _buffer.setCursor(0, 0);
}