PortPanEndCallback typedef

PortPanEndCallback = void Function(DragEndDetails details)

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

Implementation

typedef PortPanEndCallback = void Function(DragEndDetails details);