FFLoadingWidget constructor

FFLoadingWidget({
  1. FFLoadingWidget_DefaultLoadingIndicator? defaultLoadingIndicator,
  2. FFLoadingIndicator? loadingIndicator,
  3. @Deprecated('This field is deprecated.') String? legacyComponentClassName,
  4. FFDimensions? componentDimensions,
  5. FFPassedParameters? componentParameters,
  6. FFPadding? padding,
  7. FFImage? image,
  8. @Deprecated('This field is deprecated.') String? legacyComponentClassNodeKey,
  9. FFNodeKeyReference? componentClassNodeKeyRef,
})

Implementation

factory FFLoadingWidget({
  FFLoadingWidget_DefaultLoadingIndicator? defaultLoadingIndicator,
  FFLoadingIndicator? loadingIndicator,
  @$core.Deprecated('This field is deprecated.')
  $core.String? legacyComponentClassName,
  FFDimensions? componentDimensions,
  FFPassedParameters? componentParameters,
  FFPadding? padding,
  FFImage? image,
  @$core.Deprecated('This field is deprecated.')
  $core.String? legacyComponentClassNodeKey,
  FFNodeKeyReference? componentClassNodeKeyRef,
}) {
  final result = create();
  if (defaultLoadingIndicator != null)
    result.defaultLoadingIndicator = defaultLoadingIndicator;
  if (loadingIndicator != null) result.loadingIndicator = loadingIndicator;
  if (legacyComponentClassName != null)
    result.legacyComponentClassName = legacyComponentClassName;
  if (componentDimensions != null)
    result.componentDimensions = componentDimensions;
  if (componentParameters != null)
    result.componentParameters = componentParameters;
  if (padding != null) result.padding = padding;
  if (image != null) result.image = image;
  if (legacyComponentClassNodeKey != null)
    result.legacyComponentClassNodeKey = legacyComponentClassNodeKey;
  if (componentClassNodeKeyRef != null)
    result.componentClassNodeKeyRef = componentClassNodeKeyRef;
  return result;
}