modify method
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,
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,
);
}