appBarBackButton static method

IconButton appBarBackButton({
  1. required BuildContext context,
  2. IconData icon = Icons.arrow_back_ios,
})

App Bar Back Button

Implementation

static IconButton appBarBackButton(
    {required BuildContext context, IconData icon = Icons.arrow_back_ios}) {
  return IconButton(
    icon: Icon(icon),
    onPressed: () {
      Navigator.of(context).pop();
    },
  );
}