selection property

TextSelection get selection

Implementation

TextSelection get selection =>
    controller?.selection ??
    (_cacheTextEditingValue?.selection ??
        TextSelection.fromPosition(
          const TextPosition(offset: 0, affinity: TextAffinity.downstream),
        ));