Skip to content

Commit 0314cc1

Browse files
joakimungeBirjuVachhani
authored andcommitted
feat: remove unnecessary type def
1 parent 2e0e943 commit 0314cc1

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

packages/flutter_box_transform/lib/src/transformable_box.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class TransformableBox extends StatefulWidget {
143143
final RectChangeEvent? onChanged;
144144

145145
/// A callback that is called every time the [TransformableBox] is tapped.
146-
final TapEvent? onTap;
146+
final VoidCallback? onTap;
147147

148148
/// A callback that is called when [TransformableBox] triggers a pointer down
149149
/// event to begin a drag operation.

packages/flutter_box_transform/lib/src/typedefs.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ typedef RectChangeEvent = void Function(
2525
DragUpdateDetails event,
2626
);
2727

28-
/// A callback that is called when the box is tapped.
29-
typedef TapEvent = void Function();
30-
3128
/// A callback that is called when the box begins a drag operation.
3229
typedef RectDragStartEvent = void Function(
3330
DragStartDetails event,

0 commit comments

Comments
 (0)