onTap property

VoidCallback? onTap
final

This callback gets called when the user clicks or taps on the attribution source.

Most tile providers will require you to link to their terms of service, which may be done through this callback (and a package like 'url_launcher').

Implementation

final VoidCallback? onTap;