defaultLeading method

Widget defaultLeading(
  1. BuildContext context
)

Implementation

Widget defaultLeading(BuildContext context) {
  return IconButton(
      icon: Icon(
        Icons.arrow_back,
        color: UIData.white,
      ),
      onPressed: this.onBack != null
          ? this.onBack as void Function()?
          : () {
              GoRouter.of(context).pop();
            });
}