modify method

AppbarProperties modify({
  1. Key? appbarKey,
  2. IconThemeData? actionsIconTheme,
  3. bool? automaticallyImplyLeading,
  4. Color? backgroundColor,
  5. double? bottomOpacity,
  6. Clip? clipBehavior,
  7. double? elevation,
  8. bool? excludeHeaderSemantics,
  9. Color? foregroundColor,
  10. bool? forceMaterialTransparency,
  11. IconThemeData? iconTheme,
  12. double? leadingWidth,
  13. bool? primary,
  14. double? scrolledUnderElevation,
  15. Color? shadowColor,
  16. ShapeBorder? shape,
  17. Color? surfaceTintColor,
  18. String? title,
  19. bool? titleCenter,
  20. double? titleSpacing,
  21. TextStyle? titleTextStyle,
  22. double? toolbarHeight,
  23. double? toolbarOpacity,
  24. TextStyle? toolbarTextStyle,
})

Implementation

AppbarProperties modify({
  Key? appbarKey,
  IconThemeData? actionsIconTheme,
  bool? automaticallyImplyLeading,
  Color? backgroundColor,
  double? bottomOpacity,
  Clip? clipBehavior,
  double? elevation,
  bool? excludeHeaderSemantics,
  Color? foregroundColor,
  bool? forceMaterialTransparency,
  IconThemeData? iconTheme,
  double? leadingWidth,
  bool? primary,
  double? scrolledUnderElevation,
  Color? shadowColor,
  ShapeBorder? shape,
  Color? surfaceTintColor,
  String? title,
  bool? titleCenter,
  double? titleSpacing,
  TextStyle? titleTextStyle,
  double? toolbarHeight,
  double? toolbarOpacity,
  TextStyle? toolbarTextStyle,
}) {
  return AppbarProperties(
    appbarKey: appbarKey ?? this.appbarKey,
    actionsIconTheme: actionsIconTheme ?? this.actionsIconTheme,
    automaticallyImplyLeading:
        automaticallyImplyLeading ?? this.automaticallyImplyLeading,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    bottomOpacity: bottomOpacity ?? this.bottomOpacity,
    clipBehavior: clipBehavior ?? this.clipBehavior,
    elevation: elevation ?? this.elevation,
    excludeHeaderSemantics:
        excludeHeaderSemantics ?? this.excludeHeaderSemantics,
    foregroundColor: foregroundColor ?? this.foregroundColor,
    forceMaterialTransparency:
        forceMaterialTransparency ?? this.forceMaterialTransparency,
    iconTheme: iconTheme ?? this.iconTheme,
    leadingWidth: leadingWidth ?? this.leadingWidth,
    primary: primary ?? this.primary,
    scrolledUnderElevation:
        scrolledUnderElevation ?? this.scrolledUnderElevation,
    shadowColor: shadowColor ?? this.shadowColor,
    shape: shape ?? this.shape,
    surfaceTintColor: surfaceTintColor ?? this.surfaceTintColor,
    title: title ?? this.title,
    titleCenter: titleCenter ?? this.titleCenter,
    titleSpacing: titleSpacing ?? this.titleSpacing,
    titleTextStyle: titleTextStyle ?? this.titleTextStyle,
    toolbarHeight: toolbarHeight ?? this.toolbarHeight,
    toolbarOpacity: toolbarOpacity ?? this.toolbarOpacity,
    toolbarTextStyle: toolbarTextStyle ?? this.toolbarTextStyle,
  );
}