copyWith method

  1. @override
AgentStepSpec copyWith({
  1. StyleSpec<FlexBoxSpec>? container,
  2. StyleSpec<IconSpec>? icon,
  3. StyleSpec<TextSpec>? title,
  4. 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,
  );
}