Selaa lähdekoodia

Add comments on setSelectionRange

xuty 3 vuotta sitten
vanhempi
sitoutus
3dcb04b28b
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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);