onTap method

void onTap(
  1. void function()
)

Implementation

void onTap(void Function() function) => _onTap = function;