From 61e574bc224fd5f426d1ad0275c8832623c5464a Mon Sep 17 00:00:00 2001 From: Giles Correia Morton Date: Sat, 29 Jul 2023 13:43:30 +0100 Subject: [PATCH] Update notes on super.onDragStart/End --- doc/tutorials/klondike/step4.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/tutorials/klondike/step4.md b/doc/tutorials/klondike/step4.md index 819c8a12bff..35919cf1696 100644 --- a/doc/tutorials/klondike/step4.md +++ b/doc/tutorials/klondike/step4.md @@ -584,7 +584,8 @@ it so that it would check whether the card is allowed to be moved before startin We have also added a call to `super.onDragStart()` which sets an `_isDragged` variable to `true` in the `DragCallbacks` mixin, we need to check this flag via the public `isDragged` getter in -the `onDragUpdate()` method. Let's also use `super.onDragEnd()` to set the flag back to `false`: +the `onDragUpdate()` method and use `super.onDragEnd()` in `onDragEnd()` so the flag is set back +to `false`: ```dart @override