copyWith method
AgentStepSpec
copyWith({
- StyleSpec<
FlexBoxSpec> ? container, - StyleSpec<
IconSpec> ? icon, - StyleSpec<
TextSpec> ? title, - StyleSpec<
TextSpec> ? detail,
inherited
Creates a copy of this spec with the given fields replaced by the non-null parameter values.
Implementation
@override
AgentStepSpec copyWith({
StyleSpec<FlexBoxSpec>? container,
StyleSpec<IconSpec>? icon,
StyleSpec<TextSpec>? title,
StyleSpec<TextSpec>? detail,
}) {
return AgentStepSpec(
container: container ?? this.container,
icon: icon ?? this.icon,
title: title ?? this.title,
detail: detail ?? this.detail,
);
}