getAppBarLeadingWidget method

Widget? getAppBarLeadingWidget(
  1. String? value
)

Implementation

Widget? getAppBarLeadingWidget(String? value) {
  if (value == null || value.isEmpty) {
    return null;
  }

  switch (value) {
    case "back":
      return const BackButton();
    case "close":
      return const CloseButton();
    default:
      return null;
  }
}