getBackButton method
Implementation
Widget getBackButton(BuildContext context, CometChatTheme theme) {
if (hideBackButton != true) {
if (backButton != null) {
return backButton!(context);
}
Widget backIcon;
backIcon = GestureDetector(
onTap: onBack ??
() {
Navigator.pop(context);
},
child: AppTheme.backIcon,
);
return Padding(
padding: const EdgeInsets.only(left: 12.0), child: backIcon);
} else {
return const SizedBox(
height: 0,
width: 0,
);
}
}