refactor: Update to Dart 3.10 with . shorthands
This commit is contained in:
parent
75a37f3f7c
commit
1ea649f01e
167 changed files with 3351 additions and 3912 deletions
|
|
@ -64,8 +64,10 @@ Widget markdownContextBuilder(
|
|||
if (start == -1) start = 0;
|
||||
final end = selection.end;
|
||||
|
||||
final fullLineSelection =
|
||||
TextSelection(baseOffset: start, extentOffset: end);
|
||||
final fullLineSelection = TextSelection(
|
||||
baseOffset: start,
|
||||
extentOffset: end,
|
||||
);
|
||||
|
||||
const checkBox = '- [ ]';
|
||||
|
||||
|
|
@ -78,8 +80,11 @@ Widget markdownContextBuilder(
|
|||
: '$checkBox $line',
|
||||
)
|
||||
.join('\n');
|
||||
controller.text =
|
||||
controller.text.replaceRange(start, end, replacedRange);
|
||||
controller.text = controller.text.replaceRange(
|
||||
start,
|
||||
end,
|
||||
replacedRange,
|
||||
);
|
||||
ContextMenuController.removeAny();
|
||||
},
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue