copyWith method

  1. @override
ThemeExtension<TxFormFieldThemeData> copyWith({
  1. TextAlign? textAlign,
  2. InputDecorationTheme? inputDecorationTheme,
  3. bool? bordered,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
ThemeExtension<TxFormFieldThemeData> copyWith({
  TextAlign? textAlign,
  InputDecorationTheme? inputDecorationTheme,
  bool? bordered,
}) {
  return TxFormFieldThemeData(
    inputDecorationTheme: inputDecorationTheme ?? this.inputDecorationTheme,
    bordered: bordered ?? this.bordered,
  );
}