onDragEnd method
Called when the drag gesture finishes.
The default handler will deliver this event to all components who has previously received the corresponding onDragStart event and onDragUpdates.
Implementation
@mustCallSuper
void onDragEnd(DragEndEvent event) {
_records.removeWhere((record) {
if (record.pointerId == event.pointerId) {
record.component.onDragEnd(event);
return true;
}
return false;
});
}