onTap property Null safety

(dynamic Function?()?) onTap
final

onTap function This can be very helpful if you are trying to open a date or time picker

Implementation

final Function()? onTap;