WidgetRestingEffects.vibrate constructor

WidgetRestingEffects.vibrate({
  1. AtRestAnimationSettingsBuilder? builder,
  2. Duration? duration,
  3. Alignment? alignment,
  4. Curve? curve,
  5. int? numberOfPlays,
  6. double? effectStrength,
  7. Duration? delay,
})

Constructor to randomly vibrate the widget position in a sudden stepped movement

Implementation

WidgetRestingEffects.vibrate(
    {this.builder,
    this.duration,
    this.alignment,
    this.curve,
    this.numberOfPlays,
    this.effectStrength,
    this.delay})
    : style = WidgetRestingEffectStyle.vibrate;