WorkingIndicatorBuilder.linear constructor

WorkingIndicatorBuilder.linear({
  1. Key? key,
  2. required Stated stated,
  3. Duration duration = const Duration(microseconds: 100),
  4. Curve curve = Curves.easeInOut,
})

Render a LinearProgressIndicator if stated is working. User duration and curve to control fading animation

Implementation

factory WorkingIndicatorBuilder.linear({
  Key? key,
  required Stated stated,
  Duration duration = const Duration(microseconds: 100),
  Curve curve = Curves.easeInOut,
}) =>
    WorkingIndicatorBuilder.custom(
      key: key,
      stated: stated,
      child: const LinearProgressIndicator(),
      builder: _buildAnimation(duration, curve),
    );