Ejemplo n.º 1
0
 public SliverAnimatedList(
     Key key = null,
     AnimatedListItemBuilder itemBuilder = null,
     int initialItemCount = 0
     ) : base(key: key)
 {
     D.assert(itemBuilder != null);
     D.assert(initialItemCount >= 0);
     this.itemBuilder      = itemBuilder;
     this.initialItemCount = initialItemCount;
 }
Ejemplo n.º 2
0
 public AnimatedList(
     Key key = null,
     AnimatedListItemBuilder itemBuilder = null,
     int initialItemCount        = 0,
     Axis scrollDirection        = Axis.vertical,
     bool reverse                = false,
     ScrollController controller = null,
     bool?primary                = null,
     ScrollPhysics physics       = null,
     bool shrinkWrap             = false,
     EdgeInsetsGeometry padding  = null) : base(key: key)
 {
     D.assert(itemBuilder != null);
     D.assert(initialItemCount >= 0);
     this.itemBuilder      = itemBuilder;
     this.initialItemCount = initialItemCount;
     this.scrollDirection  = scrollDirection;
     this.reverse          = reverse;
     this.controller       = controller;
     this.primary          = primary;
     this.physics          = physics;
     this.shrinkWrap       = shrinkWrap;
     this.padding          = padding;
 }