setLineStyle method

void setLineStyle(
  1. TextAttribute attribute
)

Apply a text attribute to the currently focused line, if there is one.

Implementation

void setLineStyle(TextAttribute attribute) {
  final line = focusedLine;
  if (line != null) {
    setLineStyleOf(line, attribute);
  }
}