copyWith method

  1. @override
FieldStylePicker copyWith({
  1. BottomModalSheetStyle? bottomModalSheetStyle,
  2. double? containerHeight,
  3. EdgeInsets? containerPadding,
  4. BorderRadius? containerBorderRadius,
  5. NyColor? containerColor,
  6. TextStyle? selectedValueTextStyle,
  7. TextStyle? fieldNameTextStyle,
  8. TextStyle? placeholderTextStyle,
  9. String? placeholderPrefix,
  10. IconData? dropdownIcon,
  11. NyColor? dropdownIconColor,
  12. double? bottomSheetHeightFactor,
  13. BorderRadius? bottomSheetBorderRadius,
  14. EdgeInsets? bottomSheetPadding,
  15. NyColor? bottomSheetDividerColor,
  16. double? placeholderGap,
  17. double? widthBreakpoint,
  18. double? headerSpacing,
  19. double? footerSpacing,
})
override

Implementation

@override
FieldStylePicker copyWith({
  BottomModalSheetStyle? bottomModalSheetStyle,
  double? containerHeight,
  EdgeInsets? containerPadding,
  BorderRadius? containerBorderRadius,
  NyColor? containerColor,
  TextStyle? selectedValueTextStyle,
  TextStyle? fieldNameTextStyle,
  TextStyle? placeholderTextStyle,
  String? placeholderPrefix,
  IconData? dropdownIcon,
  NyColor? dropdownIconColor,
  double? bottomSheetHeightFactor,
  BorderRadius? bottomSheetBorderRadius,
  EdgeInsets? bottomSheetPadding,
  NyColor? bottomSheetDividerColor,
  double? placeholderGap,
  double? widthBreakpoint,
  double? headerSpacing,
  double? footerSpacing,
}) {
  return FieldStylePicker(
    bottomModalSheetStyle:
        bottomModalSheetStyle ?? this.bottomModalSheetStyle,
    containerHeight: containerHeight ?? this.containerHeight,
    containerPadding: containerPadding ?? this.containerPadding,
    containerBorderRadius:
        containerBorderRadius ?? this.containerBorderRadius,
    containerColor: containerColor ?? this.containerColor,
    selectedValueTextStyle:
        selectedValueTextStyle ?? this.selectedValueTextStyle,
    fieldNameTextStyle: fieldNameTextStyle ?? this.fieldNameTextStyle,
    placeholderTextStyle: placeholderTextStyle ?? this.placeholderTextStyle,
    placeholderPrefix: placeholderPrefix ?? this.placeholderPrefix,
    dropdownIcon: dropdownIcon ?? this.dropdownIcon,
    dropdownIconColor: dropdownIconColor ?? this.dropdownIconColor,
    bottomSheetHeightFactor:
        bottomSheetHeightFactor ?? this.bottomSheetHeightFactor,
    bottomSheetBorderRadius:
        bottomSheetBorderRadius ?? this.bottomSheetBorderRadius,
    bottomSheetPadding: bottomSheetPadding ?? this.bottomSheetPadding,
    bottomSheetDividerColor:
        bottomSheetDividerColor ?? this.bottomSheetDividerColor,
    placeholderGap: placeholderGap ?? this.placeholderGap,
    widthBreakpoint: widthBreakpoint ?? this.widthBreakpoint,
    headerSpacing: headerSpacing ?? this.headerSpacing,
    footerSpacing: footerSpacing ?? this.footerSpacing,
  );
}