Selection class
Represents a text selection in an editor.
- Implemented types
- Available extensions
- Annotations
- 
    - @JS.new()
- @staticInterop
 
Constructors
- Selection.$1()
- 
          
            factory
- Selection.$2(Position anchor, Position active)
- 
          
            factory
- Selection.$3(num anchorLine, num anchorCharacter, num activeLine, num activeCharacter)
- 
          
            factory
Properties
- active ↔ Position
- 
      Available on Selection, provided by the Selection$Typings extension The position of the cursor. This position might be before or after {@link Selection.anchor anchor}.getter/setter pair
- anchor ↔ Position
- 
      Available on Selection, provided by the Selection$Typings extension The position at which the selection starts. This position might be before or after {@link Selection.active active}.getter/setter pair
- end → Position
- 
      Available on Range, provided by the Range$Typings extension The end position. It is after or equal to {@link Range.startstart}.no setter
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- isEmpty ↔ bool
- 
      Available on Range, provided by the Range$Typings extension trueifstartandendare equal.getter/setter pair
- isReversed ↔ bool
- 
      Available on Selection, provided by the Selection$Typings extension A selection is reversed if its {@link Selection.anchor anchor} is the {@link Selection.end end} position.getter/setter pair
- isSingleLine ↔ bool
- 
      Available on Range, provided by the Range$Typings extension trueifstart.lineandend.lineare equal.getter/setter pair
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
- start → Position
- 
      Available on Range, provided by the Range$Typings extension The start position. It is before or equal to {@link Range.endend}.no setter
- with$ → ({Range Function(IInline2 change) $1, Range Function([Position? start, Position? end]) $2})
- 
      Available on Range, provided by the Range$Typings extension Overload accessor: $1, $2no setter
Methods
- 
  contains(Object positionOrRange) → bool 
- 
      Available on Range, provided by the Range$Typings extension Check if a position or a range is contained in this range.
- 
  intersection(Range range) → Range? 
- 
      Available on Range, provided by the Range$Typings extension Intersectrangewith this range and returns a new range orundefinedif the ranges have no overlap.
- 
  isEqual(Range other) → bool 
- 
      Available on Range, provided by the Range$Typings extension Check ifotherequals this range.
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
- 
  union(Range other) → Range 
- 
      Available on Range, provided by the Range$Typings extension Compute the union ofotherwith this range.
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited