animationEffect property

  1. @JsonKey.new(includeFromJson: false, includeToJson: false)
ConnectionEffect? get animationEffect

The animation effect to apply to this connection.

When set to a ConnectionEffect instance, the connection will be animated using that effect's rendering logic. Set to null to disable animation.

Example:

connection.animationEffect = FlowingDashEffect(
  speed: 2.0,
  dashLength: 10.0,
  gapLength: 5.0,
);

Implementation

@JsonKey(includeFromJson: false, includeToJson: false)
ConnectionEffect? get animationEffect => _animationEffect.value;
set animationEffect (ConnectionEffect? value)

Sets the animation effect for this connection.

Implementation

set animationEffect(ConnectionEffect? value) =>
    runInAction(() => _animationEffect.value = value);