BarButton constructor

const BarButton({
  1. Key? key,
  2. String? text,
  3. IconData? icon,
  4. VoidCallback? onPressed,
})

Supply the Button's label, icon, and 'onPressed' routine.

Implementation

const BarButton({this.key, this.text, this.icon, this.onPressed});