getPositionForOffset method

  1. @override
TextPosition getPositionForOffset(
  1. Offset offset
)
override

Implementation

@override
TextPosition getPositionForOffset(Offset offset) => TextPosition(offset: offset.dx > size.width / 2 ? 1 : 0);