HeartbeatProgressIndicator constructor

HeartbeatProgressIndicator({
  1. Duration duration = const Duration(seconds: 1),
  2. double startScale = 1.0,
  3. double endScale = 2.0,
  4. required Widget child,
})

Creates heartbeat indicator.

child widget must not be null. startScale is optional and default value is 1.0. endScale is optional and default value is 2.0. duration is optional and default value is 1 second.

Implementation

HeartbeatProgressIndicator({
  this.duration = const Duration(seconds: 1),
  this.startScale: 1.0,
  this.endScale: 2.0,
  required this.child,
}) : assert(child != null);