StatefulDataDefaultViews constructor

const StatefulDataDefaultViews({
  1. Key? key,
  2. Widget? empty,
  3. Widget? initialLoading,
  4. Widget? initialLoadingError,
  5. Widget? loading,
  6. required Widget child,
})

Creates an instance of StatefulDataDefaultViews.

Implementation

const StatefulDataDefaultViews({
  Key? key,
  this.empty,
  this.initialLoading,
  this.initialLoadingError,
  this.loading,
  required Widget child,
})  : assert(
          empty != null ||
              initialLoading != null ||
              initialLoadingError != null ||
              loading != null,
          'At least one of "empty", "initialLoading", "initialLoadingError" or "loading" should be specified. '
          'Otherwise this instance of "StatefulDataDefaultViews" does not make sense.'),
      super(key: key, child: child);