public ValueListenableBuilder(
     ValueListenable <T> valueListenable,
     ValueWidgetBuilder <T> builder,
     Widget child = null
     )
 {
     D.assert(valueListenable != null);
     D.assert(builder != null);
     this.valueListenable = valueListenable;
     this.builder         = builder;
     this.child           = child;
 }
Example #2
0
 public TweenAnimationBuilder(
     Key key           = null,
     Tween <T> tween   = null,
     TimeSpan?duration = null,
     Curve curve       = null,
     ValueWidgetBuilder <T> builder = null,
     VoidCallback onEnd             = null,
     Widget child = null
     ) : base(key: key, duration: duration, curve: curve, onEnd: onEnd)
 {
     curve = curve ?? Curves.linear;
     D.assert(tween != null);
     D.assert(curve != null);
     D.assert(builder != null);
     this.tween   = tween;
     this.child   = child;
     this.builder = builder;
 }