Skip to content

Commit 21d97d9

Browse files
committed
Make _onDropItem private
1 parent 2785b7b commit 21d97d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/board_item.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class BoardItemState extends State<BoardItem>
4747
@override
4848
bool get wantKeepAlive => true;
4949

50-
void onDropItem(int? listIndex, int? itemIndex) {
50+
void _onDropItem(int? listIndex, int? itemIndex) {
5151
if (widget.onDropItem != null) {
5252
widget.onDropItem!(
5353
listIndex,
@@ -65,7 +65,7 @@ class BoardItemState extends State<BoardItem>
6565

6666
void _startDrag(Widget item, BuildContext context) {
6767
if (widget.boardList!.widget.boardView != null) {
68-
widget.boardList!.widget.boardView!.onDropItem = onDropItem;
68+
widget.boardList!.widget.boardView!.onDropItem = _onDropItem;
6969
if (widget.boardList!.mounted) {
7070
widget.boardList!.setState(() {});
7171
}

0 commit comments

Comments
 (0)