copyWith method
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
DropdownIconsTheme copyWith({
Widget? leadingIcon,
Widget? trailingIcon,
Widget? selectedTrailingIcon,
}) {
return DropdownIconsTheme(
leadingIcon: leadingIcon ?? this.leadingIcon,
trailingIcon: trailingIcon ?? this.trailingIcon,
selectedTrailingIcon: selectedTrailingIcon ?? this.selectedTrailingIcon,
);
}