NullStatusSwitcher constructor

const NullStatusSwitcher({
  1. Key? key,
  2. bool isLoading = false,
  3. bool isEmpty = false,
  4. bool isSearching = false,
  5. bool holdsArrival = true,
  6. Widget? loadingStatus,
  7. NullStatus? nullStatus,
  8. required Widget child,
})

Implementation

const NullStatusSwitcher({
  super.key,
  this.isLoading = false,
  this.isEmpty = false,
  this.isSearching = false,
  this.holdsArrival = true,
  this.loadingStatus,
  this.nullStatus,
  required this.child,
}) : assert(!isEmpty || nullStatus != null);