CommonAppBar constructor Null safety

CommonAppBar(
  1. {Key? key,
  2. String? title,
  3. bool? showBackButton,
  4. bool showSearchAction = true,
  5. Function? onPressedBack,
  6. Color borderColor = const Color.fromARGB(255, 242, 244, 246),
  7. Color titleColor = Colors.black,
  8. Color backgroundColor = Colors.white,
  9. bool rootNavigator = false}
)

Implementation

CommonAppBar({
  Key? key,
  this.title,
  this.showBackButton,
  this.showSearchAction = true,
  this.onPressedBack,
  this.borderColor = const Color.fromARGB(255, 242, 244, 246),
  this.titleColor = Colors.black,
  this.backgroundColor = Colors.white,
  this.rootNavigator = false,
})  : preferredSize = Size.fromHeight(AppConstants.APPBAR_HEIGHT),
      super(key: key);