KenBurns constructor

KenBurns(
  1. {@required Widget child,
  2. Duration minAnimationDuration: const Duration(milliseconds: 3000),
  3. Duration maxAnimationDuration: const Duration(milliseconds: 10000),
  4. double maxScale: 8}
)

Constructor for a single child KenBurns

Implementation

KenBurns({
  @required this.child,
  this.minAnimationDuration = const Duration(milliseconds: 3000),
  this.maxAnimationDuration = const Duration(milliseconds: 10000),
  this.maxScale = 8,
})  : this.childrenFadeDuration = null,
      this.children = null,
      this.childLoop = null,
      assert(minAnimationDuration != null &&
          minAnimationDuration.inMilliseconds > 0),
      assert(maxAnimationDuration != null &&
          maxAnimationDuration.inMilliseconds > 0),
      assert(minAnimationDuration < maxAnimationDuration),
      assert(maxScale > 1),
      assert(child != null);