onTap property Null safety
Called when the user taps on the render object.
Implementation
GestureTapCallback? get onTap => _onTap;
Implementation
set onTap(GestureTapCallback? value) {
if (_onTap == value) {
return;
}
final bool hadHandler = _onTap != null;
_onTap = value;
if ((value != null) != hadHandler) {
markNeedsSemanticsUpdate();
}
}