VirtualRemovedBlock constructor

const VirtualRemovedBlock({
  1. required int afterLine,
  2. required String content,
  3. Color backgroundColor = const Color(0x30E53935),
  4. TextStyle? textStyle,
})

Creates a virtual removed block.

afterLine - The 0-based line number after which to display the removed content. content - The deleted text content (use \n for multiple lines). backgroundColor - Background fill color for the removed area. textStyle - Optional custom text style for the removed text.

Implementation

const VirtualRemovedBlock({
  required this.afterLine,
  required this.content,
  this.backgroundColor = const Color(0x30E53935),
  this.textStyle,
});