ProgressController constructor

ProgressController({
  1. bool removeFailAfterDuration = true,
  2. Duration? failDuration,
})

Implementation

ProgressController(
    {this.removeFailAfterDuration = true, Duration? failDuration}) {
  if (failDuration != null) {
    _failDuration = failDuration;
  } else {
    _failDuration = const Duration(seconds: 10);
  }
}