copyWith method

Transition copyWith({
  1. String? description,
  2. List<String>? from,
  3. String? id,
  4. String? name,
  5. Map<String, dynamic>? properties,
  6. WorkflowRules? rules,
  7. TransitionScreenDetails? screen,
  8. String? to,
  9. TransitionType? type,
})

Implementation

Transition copyWith(
    {String? description,
    List<String>? from,
    String? id,
    String? name,
    Map<String, dynamic>? properties,
    WorkflowRules? rules,
    TransitionScreenDetails? screen,
    String? to,
    TransitionType? type}) {
  return Transition(
    description: description ?? this.description,
    from: from ?? this.from,
    id: id ?? this.id,
    name: name ?? this.name,
    properties: properties ?? this.properties,
    rules: rules ?? this.rules,
    screen: screen ?? this.screen,
    to: to ?? this.to,
    type: type ?? this.type,
  );
}