ShakeEffect constructor

const ShakeEffect({
  1. Duration? delay,
  2. Duration? duration,
  3. Curve? curve,
  4. double? hz,
  5. Offset? offset,
  6. double? rotation,
})

Implementation

const ShakeEffect({
  super.delay,
  super.duration,
  super.curve,
  double? hz,
  Offset? offset,
  double? rotation,
})  : rotation = rotation ?? defaultRotation,
      hz = hz ?? defaultHz,
      offset = offset ?? Offset.zero,
      super(
        begin: 0,
        end: 1,
      );