copyWith method
FluttermojiThemeData
copyWith({
- TextStyle? labelTextStyle,
- Color? primaryBgColor,
- Color? secondaryBgColor,
- Decoration? selectedTileDecoration,
- Decoration? unselectedTileDecoration,
- Color? iconColor,
- Color? selectedIconColor,
- Decoration? boxDecoration,
- ScrollPhysics? scrollPhysics,
- EdgeInsetsGeometry? tilePadding,
- EdgeInsetsGeometry? tileMargin,
Implementation
FluttermojiThemeData copyWith({
TextStyle? labelTextStyle,
Color? primaryBgColor,
Color? secondaryBgColor,
Decoration? selectedTileDecoration,
Decoration? unselectedTileDecoration,
Color? iconColor,
Color? selectedIconColor,
Decoration? boxDecoration,
ScrollPhysics? scrollPhysics,
EdgeInsetsGeometry? tilePadding,
EdgeInsetsGeometry? tileMargin,
}) {
return FluttermojiThemeData(
labelTextStyle: labelTextStyle ?? this.labelTextStyle,
primaryBgColor: primaryBgColor ?? this.primaryBgColor,
secondaryBgColor: secondaryBgColor ?? this.secondaryBgColor,
selectedTileDecoration:
selectedTileDecoration ?? this.selectedTileDecoration,
unselectedTileDecoration:
unselectedTileDecoration ?? this.unselectedTileDecoration,
iconColor: iconColor ?? this.iconColor,
selectedIconColor: selectedIconColor ?? this.selectedIconColor,
boxDecoration: boxDecoration ?? this.boxDecoration,
scrollPhysics: scrollPhysics ?? this.scrollPhysics,
tilePadding: tilePadding ?? this.tilePadding,
tileMargin: tileMargin ?? this.tileMargin,
);
}