use dot-shorthands where possible
This commit is contained in:
parent
6c0d7b6fed
commit
1d77f71950
1 changed files with 4 additions and 4 deletions
|
|
@ -125,10 +125,10 @@ final class ChatScroll({
|
|||
final position = scrollController.position;
|
||||
|
||||
if (position.extentAfter <= loadThreshold) {
|
||||
await paginate(Direction.backward);
|
||||
await paginate(.backward);
|
||||
} else if (contextualEvent != null &&
|
||||
position.extentBefore <= loadThreshold) {
|
||||
await paginate(Direction.forward);
|
||||
await paginate(.forward);
|
||||
} else if (position.extentBefore <= readThreshold) {
|
||||
await markRead();
|
||||
}
|
||||
|
|
@ -168,7 +168,7 @@ final class ChatScroll({
|
|||
if (offset != null) {
|
||||
await scrollController.animateTo(
|
||||
offset,
|
||||
duration: const Duration(milliseconds: 700),
|
||||
duration: const .new(milliseconds: 700),
|
||||
curve: Curves.easeInOut,
|
||||
);
|
||||
return;
|
||||
|
|
@ -185,7 +185,7 @@ final class ChatScroll({
|
|||
await Scrollable.ensureVisible(
|
||||
context,
|
||||
alignment: 0.5,
|
||||
duration: const Duration(milliseconds: 700),
|
||||
duration: const .new(milliseconds: 700),
|
||||
curve: Curves.easeInOut,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue