WidgetRestingEffects.fidget constructor

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

Constructor randomly move the widget on the X and Y axis from its standard position

Implementation

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