BarButton constructor

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

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

Implementation

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