onTap property

void Function(Key)? onTap
final

A callback function to be executed when an ZetaAvatar is tapped. The function receives the key of the tapped ZetaAvatar as a parameter. If no key is provided, the index of the ZetaAvatar in the list is used.

Implementation

final void Function(Key)? onTap;