Parcourir la source

Add comments on setSelectionRange

xuty il y a 3 ans
Parent
commit
3dcb04b28b
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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);