copyWith method

FluttermojiThemeData copyWith({
  1. TextStyle? labelTextStyle,
  2. Color? primaryBgColor,
  3. Color? secondaryBgColor,
  4. Decoration? selectedTileDecoration,
  5. Decoration? unselectedTileDecoration,
  6. Color? iconColor,
  7. Color? selectedIconColor,
  8. Decoration? boxDecoration,
  9. ScrollPhysics? scrollPhysics,
  10. EdgeInsetsGeometry? tilePadding,
  11. 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,
  );
}