copyWith method

  1. @override
DropdownIconsTheme copyWith({
  1. Widget? leadingIcon,
  2. Widget? trailingIcon,
  3. Widget? selectedTrailingIcon,
})
override

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,
  );
}