ButtonShare constructor Null safety

const ButtonShare(
  1. {Key? key,
  2. required Function onClick}
)

Implementation

const ButtonShare({Key? key, required this.onClick}) : super(key: key);