getBackButton method
returns back button to be shown in appbar
Implementation
Widget? getBackButton(context, CometChatTheme theme) {
Widget? backButton;
if (showBackButton != null && showBackButton == true) {
backButton = IconButton(
onPressed: onBack ??
() {
Navigator.pop(context);
},
color: style.backIconTint,
icon: backIcon ?? AppTheme.backIcon);
}
return backButton;
}