GhostText constructor

const GhostText({
  1. required int line,
  2. required int column,
  3. required String text,
  4. TextStyle? style,
  5. bool shouldPersist = false,
})

Creates a ghost text decoration.

line - The line number where text appears (0-based) column - The column position where text starts (0-based) text - The suggestion text to display style - Optional custom style (defaults to semi-transparent italic) shouldPersist - If true, only cleared by clearGhostText(); if false, cleared on cursor movement and accepted on Tab/Right Arrow

Implementation

const GhostText({
  required this.line,
  required this.column,
  required this.text,
  this.style,
  this.shouldPersist = false,
});