onTap property Null safety

VoidCallback? onTap
final

Called when the user taps this part of the material.

Implementation

final VoidCallback? onTap;