Sonar constructor

Sonar({
  1. double radius = 24.0,
  2. required Widget child,
  3. double waveThickness = 0.5,
  4. Color waveColor = Colors.blue,
  5. Duration duration = const Duration(seconds: 1),
  6. double insets = 0.0,
  7. bool wavesDisabled = false,
})

Implementation

Sonar({
  this.radius = 24.0,
  required this.child,
  this.waveThickness = 0.5,
  this.waveColor = Colors.blue,
  this.duration = const Duration(seconds: 1),
  this.insets = 0.0,
  this.wavesDisabled = false,
}) {
  assert(radius > 0, 'radius must be greater than 0');
  assert(insets >= 0, 'insets must be greater than or equal to 0');
  assert(
    waveThickness >= 0.0,
    'waveThickness must be greater than or equal to 0.0',
  );
}