BackAppBar constructor

BackAppBar({
  1. Key? key,
  2. void onTap()?,
  3. bool disabled = false,
  4. IconData? icon,
  5. bool adaptiveBackButton = true,
  6. bool automaticallyImplyLeading = false,
  7. Widget? title,
  8. List<Widget>? actions,
  9. Widget? flexibleSpace,
  10. PreferredSizeWidget? bottom,
  11. double? elevation = 0,
  12. Color? shadowColor = Colors.transparent,
  13. ShapeBorder? shape,
  14. Color? backgroundColor = Colors.transparent,
  15. Color? foregroundColor = Colors.transparent,
  16. Brightness? brightness,
  17. IconThemeData? iconTheme = const IconThemeData(color: Colors.black),
  18. IconThemeData? actionsIconTheme = const IconThemeData(color: Colors.black),
  19. TextTheme? textTheme,
  20. bool primary = true,
  21. bool? centerTitle,
  22. bool excludeHeaderSemantics = false,
  23. double? titleSpacing,
  24. double toolbarOpacity = 1.0,
  25. double bottomOpacity = 1.0,
  26. double? toolbarHeight,
  27. double? leadingWidth,
  28. bool? backwardsCompatibility,
  29. TextStyle? toolbarTextStyle,
  30. TextStyle? titleTextStyle,
  31. SystemUiOverlayStyle? systemOverlayStyle,
})

Implementation

BackAppBar({
  Key? key,
  this.onTap,
  this.disabled = false,
  this.icon,
  this.adaptiveBackButton = true,
  this.automaticallyImplyLeading = false,
  this.title,
  this.actions,
  this.flexibleSpace,
  this.bottom,
  this.elevation = 0,
  this.shadowColor = Colors.transparent,
  this.shape,
  this.backgroundColor = Colors.transparent,
  this.foregroundColor = Colors.transparent,
  this.brightness,
  this.iconTheme = const IconThemeData(color: Colors.black),
  this.actionsIconTheme = const IconThemeData(color: Colors.black),
  this.textTheme,
  this.primary = true,
  this.centerTitle,
  this.excludeHeaderSemantics = false,
  this.titleSpacing,
  this.toolbarOpacity = 1.0,
  this.bottomOpacity = 1.0,
  this.toolbarHeight,
  this.leadingWidth,
  this.backwardsCompatibility,
  this.toolbarTextStyle,
  this.titleTextStyle,
  this.systemOverlayStyle,
})  : assert(elevation == null || elevation >= 0.0),
      preferredSize = Size.fromHeight(toolbarHeight ??
          kToolbarHeight + (bottom?.preferredSize.height ?? 0.0)),
      super(key: key);