copyWith method
AgentSourcesSpec
copyWith({
- StyleSpec<
FlexBoxSpec> ? trigger, - StyleSpec<
IconSpec> ? icon, - StyleSpec<
TextSpec> ? label, - StyleSpec<
IconSpec> ? indicator, - StyleSpec<
WrapBoxSpec> ? list, - StyleSpec<
BoxSpec> ? source, - StyleSpec<
TextSpec> ? sourceLabel,
inherited
Creates a copy of this spec with the given fields replaced by the non-null parameter values.
Implementation
@override
AgentSourcesSpec copyWith({
StyleSpec<FlexBoxSpec>? trigger,
StyleSpec<IconSpec>? icon,
StyleSpec<TextSpec>? label,
StyleSpec<IconSpec>? indicator,
StyleSpec<WrapBoxSpec>? list,
StyleSpec<BoxSpec>? source,
StyleSpec<TextSpec>? sourceLabel,
}) {
return AgentSourcesSpec(
trigger: trigger ?? this.trigger,
icon: icon ?? this.icon,
label: label ?? this.label,
indicator: indicator ?? this.indicator,
list: list ?? this.list,
source: source ?? this.source,
sourceLabel: sourceLabel ?? this.sourceLabel,
);
}