buildContent method

Widget buildContent()

Implementation

Widget buildContent() {
  switch (!isConnected && status == LayoutStatus.loading
      ? LayoutStatus.noNetwork
      : status) {
    case LayoutStatus.loading:
      return loading ?? loadingWidget;
    case LayoutStatus.empty:
      return empty ?? emptyWidget;
    case LayoutStatus.noNetwork:
      return noNetwork ?? noNetworkWidget(onReconnect);
    case LayoutStatus.error:
      return error ?? errorWidget;
    case LayoutStatus.complete:
    default:
      return child;
  }
}