public GlowingOverscrollIndicator(
     Key key                     = null,
     bool showLeading            = true,
     bool showTrailing           = true,
     AxisDirection axisDirection = AxisDirection.up,
     Color color                 = null,
     ScrollNotificationPredicate notificationPredicate = null,
     Widget child = null
     ) : base(key: key)
 {
     D.assert(color != null);
     this.showLeading           = showLeading;
     this.showTrailing          = showTrailing;
     this.axisDirection         = axisDirection;
     this.child                 = child;
     this.color                 = color;
     this.notificationPredicate = notificationPredicate ?? ScrollNotification.defaultScrollNotificationPredicate;
 }
Example #2
0
 public RefreshIndicator(
     Key key                   = null,
     Widget child              = null,
     float displacement        = 40.0f,
     RefreshCallback onRefresh = null,
     Color color               = null,
     Color backgroundColor     = null,
     ScrollNotificationPredicate notificationPredicate = null
     ) : base(key: key)
 {
     D.assert(child != null);
     D.assert(onRefresh != null);
     this.child                 = child;
     this.displacement          = displacement;
     this.onRefresh             = onRefresh;
     this.color                 = color;
     this.backgroundColor       = backgroundColor;
     this.notificationPredicate = notificationPredicate ?? ScrollNotification.defaultScrollNotificationPredicate;
 }