AnimationBuilder typedef

AnimationBuilder = Widget Function(AnimationComponentData data)

Defines a method that returns a Widget that is capable of animation.

Used by AnimationComponent as AnimationComponent.builder.

Example

AnimationComponent(
  builder: (AnimationComponentData data)
  {
    return Opacity(
      opacity: data.menuState == MenuAnimationState.OpeningEnd ? 1.0 : 0.0,
      child: data.child,
    );
  }
);

See Also:

Implementation

typedef AnimationBuilder = Widget Function(AnimationComponentData data);