Просмотр исходного кода

Add comments on setSelectionRange

xuty 3 лет назад
Родитель
Сommit
3dcb04b28b
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      lib/src/ui/controller.dart

+ 2 - 0
lib/src/ui/controller.dart

@@ -29,6 +29,8 @@ class TerminalController with ChangeNotifier {
     }
   }
 
+  /// Set selection on the terminal to the minimum range that contains both
+  /// [begin] and [end]. The type of range is determined by [selectionMode].
   void setSelectionRange(CellOffset begin, CellOffset end) {
     final range = _modeRange(begin, end);
     setSelection(range);