counterBuilder property
counterBuilder is used to customize the selection counter on picked media in the list. As it is placed in Stack widget, you can use Positioned/Align widget to position it.
context is the BuildContext of picker header
index
is the index of selected media in the list. Show nothing if it is null
Implementation
final Function(BuildContext context, int? index)? counterBuilder;