public void set_duration (string? source_state_name, string? target_state_name, uint duration)
Warning: set_duration is deprecated since 1.12.
Sets the duration of a transition.
If both state names are
null the default duration for this is set.
target_state_name is specified, the passed
duration becomes the default duration for transitions to the
If both states names are specified, the passed
duration only applies to the specified transition.
the name of the source state, or
the name of the target state, or
the duration of the transition, in milliseconds