Update lib/util/text_lines_iterator.dart
Co-authored-by: Marcin Wojnarowski <xmarcinmarcin@gmail.com>
This commit is contained in:
parent
43fb2a8ceb
commit
ecb95d3bdb
|
@ -11,8 +11,8 @@ class TextLinesIterator extends Iterator {
|
||||||
: end = -1,
|
: end = -1,
|
||||||
beg = -1;
|
beg = -1;
|
||||||
|
|
||||||
factory TextLinesIterator.fromController(TextEditingController controller) =>
|
TextLinesIterator.fromController(TextEditingController controller) :
|
||||||
TextLinesIterator(controller.text, selection: controller.selection);
|
this(controller.text, selection: controller.selection);
|
||||||
|
|
||||||
bool get isWithinSelection {
|
bool get isWithinSelection {
|
||||||
final selection = this.selection;
|
final selection = this.selection;
|
||||||
|
|
Loading…
Reference in New Issue