setCursor method
The pointer at p (null: away). The cursor is the row under it, at the
magnet field's price when the spec names one.
Implementation
void setCursor(Offset? p) {
final before = cursor;
cursor = p == null ? null : _cursorAt(p);
if (before?.index != cursor?.index || before?.y != cursor?.y || before?.pane != cursor?.pane) notifyListeners();
}