RawFloatingCursorPoint constructor

RawFloatingCursorPoint({
  1. Offset? offset,
  2. (Offset, TextPosition)? startLocation,
  3. required FloatingCursorDragState state,
})

Creates information for setting the position and state of a floating cursor.

state must not be null and offset must not be null if the state is FloatingCursorDragState.Update.

Implementation

RawFloatingCursorPoint({this.offset, this.startLocation, required this.state})
  : assert(state != FloatingCursorDragState.Update || offset != null);