SelectionEdgeUpdateEvent.forStart constructor

const SelectionEdgeUpdateEvent.forStart(
  1. {required Offset globalPosition,
  2. TextGranularity? granularity}
)

Creates a selection start edge update event.

The globalPosition contains the location of the selection start edge.

The granularity contains the granularity which the selection edge should move by. This value defaults to TextGranularity.character.

Implementation

const SelectionEdgeUpdateEvent.forStart({
  required this.globalPosition,
  TextGranularity? granularity
}) : granularity = granularity ?? TextGranularity.character, super._(SelectionEventType.startEdgeUpdate);