refactor: Update to Dart 3.10 with . shorthands

This commit is contained in:
Christian Kußowski 2025-11-30 12:54:06 +01:00
commit 1ea649f01e
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
167 changed files with 3351 additions and 3912 deletions

View file

@ -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();
},
),