FFLibrarySettings constructor

FFLibrarySettings({
  1. Iterable<FFParameter>? libraryParameters,
  2. Iterable<FFLibraryValue>? libraryValues,
  3. @Deprecated('This field is deprecated.') Iterable<FFNodeKeyReference>? legacyLibraryReferences,
  4. FFActionComponentsConfig? libraryActionComponentsConfig,
})

Implementation

factory FFLibrarySettings({
  $core.Iterable<FFParameter>? libraryParameters,
  $core.Iterable<FFLibraryValue>? libraryValues,
  @$core.Deprecated('This field is deprecated.')
  $core.Iterable<FFNodeKeyReference>? legacyLibraryReferences,
  FFActionComponentsConfig? libraryActionComponentsConfig,
}) {
  final result = create();
  if (libraryParameters != null)
    result.libraryParameters.addAll(libraryParameters);
  if (libraryValues != null) result.libraryValues.addAll(libraryValues);
  if (legacyLibraryReferences != null)
    result.legacyLibraryReferences.addAll(legacyLibraryReferences);
  if (libraryActionComponentsConfig != null)
    result.libraryActionComponentsConfig = libraryActionComponentsConfig;
  return result;
}