Explorar o código

Add comments on setSelectionRange

xuty %!s(int64=3) %!d(string=hai) anos
pai
achega
3dcb04b28b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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);