LoadingSwitcher constructor

const LoadingSwitcher({
  1. Key? key,
  2. Widget? child,
  3. Widget timedOutChild = const Center(child: CircularProgressIndicator()),
  4. Widget initialChild = const SizedBox(),
  5. Duration timeout = const Duration(milliseconds: 200),
  6. Duration switchDuration = const Duration(milliseconds: 100),
})

Implementation

const LoadingSwitcher({
  super.key,
  this.child,
  this.timedOutChild = const Center(
    child: CircularProgressIndicator(),
  ),
  this.initialChild = const SizedBox(),
  this.timeout = const Duration(milliseconds: 200),
  this.switchDuration = const Duration(milliseconds: 100),
});