ShakeEffect constructor

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

Implementation

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