copyWith method
ChipTheme
copyWith({
- ValueGetter<
EdgeInsetsGeometry?> ? padding, - ValueGetter<
AbstractButtonStyle?> ? style,
Creates a copy of this theme with the given values replaced.
Implementation
ChipTheme copyWith({
ValueGetter<EdgeInsetsGeometry?>? padding,
ValueGetter<AbstractButtonStyle?>? style,
}) {
return ChipTheme(
padding: padding == null ? this.padding : padding(),
style: style == null ? this.style : style(),
);
}