copyWith method

DateTimeFieldTheme copyWith({
  1. TextStyle? textStyle,
  2. MaterialStateProperty<Color?>? textColor,
  3. InputDecorationTheme? decorationTheme,
  4. bool? showClearIcon,
  5. Widget? clearIcon,
  6. ClearSuffixButtonTheme? clearSuffixButtonTheme,
  7. TextAlign? textAlign,
})

Implementation

DateTimeFieldTheme copyWith({
  TextStyle? textStyle,
  MaterialStateProperty<Color?>? textColor,
  InputDecorationTheme? decorationTheme,
  bool? showClearIcon,
  Widget? clearIcon,
  ClearSuffixButtonTheme? clearSuffixButtonTheme,
  TextAlign? textAlign,
}) {
  return DateTimeFieldTheme(
    textStyle: textStyle ?? this.textStyle,
    textColor: textColor ?? this.textColor,
    decorationTheme: decorationTheme ?? this.decorationTheme,
    showClearIcon: showClearIcon ?? this.showClearIcon,
    // ignore: deprecated_member_use_from_same_package
    clearIcon: clearIcon ?? this.clearIcon,
    clearSuffixButtonTheme:
        clearSuffixButtonTheme ?? this.clearSuffixButtonTheme,
    textAlign: textAlign ?? this.textAlign,
  );
}