SelectionEdgeUpdateEvent.forEnd constructor

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

Creates a selection end edge update event.

The globalPosition contains the new location of the selection end edge.

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

Implementation

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