ComponentLifecycleSnapshot constructor

ComponentLifecycleSnapshot({
  1. SDKComponent? component,
  2. ComponentLifecycleState? state,
  3. String? modelId,
  4. Int64? updatedAtMs,
  5. ModelCategory? category,
  6. InferenceFramework? framework,
  7. String? resolvedPath,
  8. Int64? loadedAtUnixMs,
  9. ModelInfo? model,
  10. SDKError? error,
})

Implementation

factory ComponentLifecycleSnapshot({
  SDKComponent? component,
  $5.ComponentLifecycleState? state,
  $core.String? modelId,
  $fixnum.Int64? updatedAtMs,
  $0.ModelCategory? category,
  $0.InferenceFramework? framework,
  $core.String? resolvedPath,
  $fixnum.Int64? loadedAtUnixMs,
  $0.ModelInfo? model,
  $1.SDKError? error,
}) {
  final result = create();
  if (component != null) result.component = component;
  if (state != null) result.state = state;
  if (modelId != null) result.modelId = modelId;
  if (updatedAtMs != null) result.updatedAtMs = updatedAtMs;
  if (category != null) result.category = category;
  if (framework != null) result.framework = framework;
  if (resolvedPath != null) result.resolvedPath = resolvedPath;
  if (loadedAtUnixMs != null) result.loadedAtUnixMs = loadedAtUnixMs;
  if (model != null) result.model = model;
  if (error != null) result.error = error;
  return result;
}