copyWith method

NavigationDrawerThemeData copyWith({
  1. double? tileHeight,
  2. Color? backgroundColor,
  3. double? elevation,
  4. Color? shadowColor,
  5. Color? surfaceTintColor,
  6. Color? indicatorColor,
  7. ShapeBorder? indicatorShape,
  8. Size? indicatorSize,
  9. MaterialStateProperty<TextStyle?>? labelTextStyle,
  10. MaterialStateProperty<IconThemeData?>? iconTheme,
})

Creates a copy of this object with the given fields replaced with the new values.

Implementation

NavigationDrawerThemeData copyWith({
  double? tileHeight,
  Color? backgroundColor,
  double? elevation,
  Color? shadowColor,
  Color? surfaceTintColor,
  Color? indicatorColor,
  ShapeBorder? indicatorShape,
  Size? indicatorSize,
  MaterialStateProperty<TextStyle?>? labelTextStyle,
  MaterialStateProperty<IconThemeData?>? iconTheme,
}) {
  return NavigationDrawerThemeData(
    tileHeight: tileHeight ?? this.tileHeight,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    elevation: elevation ?? this.elevation,
    shadowColor: shadowColor ?? this.shadowColor,
    surfaceTintColor: surfaceTintColor ?? this.surfaceTintColor,
    indicatorColor: indicatorColor ?? this.indicatorColor,
    indicatorShape: indicatorShape ?? this.indicatorShape,
    indicatorSize: indicatorSize ?? this.indicatorSize,
    labelTextStyle: labelTextStyle ?? this.labelTextStyle,
    iconTheme: iconTheme ?? this.iconTheme,
  );
}