createDestinationTapCallback method
Creates a callback for when a destination at the given index is tapped. Only available when destinationType is DestinationTypes.byIndex.
Implementation
VoidCallback? createDestinationTapCallback(int index) {
if (destinationType != DestinationTypes.byIndex) {
return null;
}
return () {
selectDestinationByIndex(index);
};
}