PortPanUpdateCallback typedef
PortPanUpdateCallback =
void Function(DragUpdateDetails details)
The typedef PortPanUpdateCallback = void Function(DragUpdateDetails details); line in the code is
defining a function type alias in Dart. It creates an alias PortPanUpdateCallback for a function
that takes one parameter details of type DragUpdateDetails and returns void. This allows you
to define functions with this specific signature and use them as callbacks in your code where
PortPanUpdateCallback type is expected.
Implementation
typedef PortPanUpdateCallback = void Function(DragUpdateDetails details);