CloudFunctionsState constructor

CloudFunctionsState({
  1. CloudFunctionsInitial? initial,
  2. CloudFunctionsLoading? loading,
  3. ExportSuccess? exportSuccess,
  4. ExportListSuccess? exportListSuccess,
  5. ExportDeleteSuccess? exportDeleteSuccess,
  6. ExportDetailsSuccess? exportDetailsSuccess,
  7. CloudFunctionsFailure? failure,
})

Implementation

factory CloudFunctionsState({
  CloudFunctionsInitial? initial,
  CloudFunctionsLoading? loading,
  ExportSuccess? exportSuccess,
  ExportListSuccess? exportListSuccess,
  ExportDeleteSuccess? exportDeleteSuccess,
  ExportDetailsSuccess? exportDetailsSuccess,
  CloudFunctionsFailure? failure,
}) {
  final result = create();
  if (initial != null) result.initial = initial;
  if (loading != null) result.loading = loading;
  if (exportSuccess != null) result.exportSuccess = exportSuccess;
  if (exportListSuccess != null) result.exportListSuccess = exportListSuccess;
  if (exportDeleteSuccess != null)
    result.exportDeleteSuccess = exportDeleteSuccess;
  if (exportDetailsSuccess != null)
    result.exportDetailsSuccess = exportDetailsSuccess;
  if (failure != null) result.failure = failure;
  return result;
}