Skip to content

Commit

Permalink
Update notes on super.onDragStart/End
Browse files Browse the repository at this point in the history
  • Loading branch information
gilescm committed Jul 29, 2023
1 parent a39d04d commit 61e574b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/tutorials/klondike/step4.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61e574b

Please sign in to comment.