ShakeConfig constructor

const ShakeConfig({
  1. required List<double> offsets,
  2. required List<double> weights,
  3. Duration duration = const Duration(milliseconds: 600),
  4. Curve curve = Curves.easeOut,
  5. ShakeAxis axis = ShakeAxis.horizontal,
})

Public const constructor.

No runtime asserts here, recommend use ShakeConfig.create for validation.

Implementation

const ShakeConfig({
  required this.offsets,
  required this.weights,
  this.duration = const Duration(milliseconds: 600),
  this.curve = Curves.easeOut,
  this.axis = ShakeAxis.horizontal,
});