copyWith method
DateTimeFieldTheme
copyWith({
- TextStyle? textStyle,
- MaterialStateProperty<
Color?> ? textColor, - InputDecorationTheme? decorationTheme,
- bool? showClearIcon,
- Widget? clearIcon,
- ClearSuffixButtonTheme? clearSuffixButtonTheme,
- 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,
);
}