TextSelection constructor
- required int baseOffset,
- required int extentOffset,
- TextAffinity affinity = TextAffinity.downstream,
- bool isDirectional = false,
Creates a text selection.
Implementation
const TextSelection({
required this.baseOffset,
required this.extentOffset,
this.affinity = TextAffinity.downstream,
this.isDirectional = false,
}) : super(
start: baseOffset < extentOffset ? baseOffset : extentOffset,
end: baseOffset < extentOffset ? extentOffset : baseOffset,
);