collectReferences method

  1. @override
Future<List<ModelReference>> collectReferences({
  1. String? appId,
})
override

Implementation

@override
Future<List<ModelReference>> collectReferences({String? appId}) async {
  List<ModelReference> referencesCollector = [];
  if (formBackground != null) {
    referencesCollector
        .addAll(await formBackground!.collectReferences(appId: appId));
  }
  if (appBackground != null) {
    referencesCollector
        .addAll(await appBackground!.collectReferences(appId: appId));
  }
  if (formGroupTitleColor != null) {
    referencesCollector
        .addAll(await formGroupTitleColor!.collectReferences(appId: appId));
  }
  if (formFieldTextColor != null) {
    referencesCollector
        .addAll(await formFieldTextColor!.collectReferences(appId: appId));
  }
  if (formFieldHeaderColor != null) {
    referencesCollector
        .addAll(await formFieldHeaderColor!.collectReferences(appId: appId));
  }
  if (formFieldFocusColor != null) {
    referencesCollector
        .addAll(await formFieldFocusColor!.collectReferences(appId: appId));
  }
  if (listBackground != null) {
    referencesCollector
        .addAll(await listBackground!.collectReferences(appId: appId));
  }
  if (listTextItemColor != null) {
    referencesCollector
        .addAll(await listTextItemColor!.collectReferences(appId: appId));
  }
  if (floatingButtonForegroundColor != null) {
    referencesCollector.addAll(
        await floatingButtonForegroundColor!.collectReferences(appId: appId));
  }
  if (floatingButtonBackgroundColor != null) {
    referencesCollector.addAll(
        await floatingButtonBackgroundColor!.collectReferences(appId: appId));
  }
  if (dividerColor != null) {
    referencesCollector
        .addAll(await dividerColor!.collectReferences(appId: appId));
  }
  if (topicContainerBackground != null) {
    referencesCollector.addAll(
        await topicContainerBackground!.collectReferences(appId: appId));
  }
  if (actionContainerBackground != null) {
    referencesCollector.addAll(
        await actionContainerBackground!.collectReferences(appId: appId));
  }
  if (appBarBG != null) {
    referencesCollector
        .addAll(await appBarBG!.collectReferences(appId: appId));
  }
  if (appBarIconColor != null) {
    referencesCollector
        .addAll(await appBarIconColor!.collectReferences(appId: appId));
  }
  if (appBarSelectedIconColor != null) {
    referencesCollector.addAll(
        await appBarSelectedIconColor!.collectReferences(appId: appId));
  }
  if (appBarMenuBackgroundColor != null) {
    referencesCollector.addAll(
        await appBarMenuBackgroundColor!.collectReferences(appId: appId));
  }
  if (bottomNavigationBarBG != null) {
    referencesCollector
        .addAll(await bottomNavigationBarBG!.collectReferences(appId: appId));
  }
  if (drawerBG != null) {
    referencesCollector
        .addAll(await drawerBG!.collectReferences(appId: appId));
  }
  if (drawerHeaderBG != null) {
    referencesCollector
        .addAll(await drawerHeaderBG!.collectReferences(appId: appId));
  }
  if (profileDrawerBG != null) {
    referencesCollector
        .addAll(await profileDrawerBG!.collectReferences(appId: appId));
  }
  if (profileDrawerHeaderBG != null) {
    referencesCollector
        .addAll(await profileDrawerHeaderBG!.collectReferences(appId: appId));
  }
  if (backgroundColorHomeMenu != null) {
    referencesCollector.addAll(
        await backgroundColorHomeMenu!.collectReferences(appId: appId));
  }
  if (h1 != null) {
    referencesCollector.addAll(await h1!.collectReferences(appId: appId));
  }
  if (h2 != null) {
    referencesCollector.addAll(await h2!.collectReferences(appId: appId));
  }
  if (h3 != null) {
    referencesCollector.addAll(await h3!.collectReferences(appId: appId));
  }
  if (h4 != null) {
    referencesCollector.addAll(await h4!.collectReferences(appId: appId));
  }
  if (h5 != null) {
    referencesCollector.addAll(await h5!.collectReferences(appId: appId));
  }
  if (textFieldHeader != null) {
    referencesCollector
        .addAll(await textFieldHeader!.collectReferences(appId: appId));
  }
  if (fontText != null) {
    referencesCollector
        .addAll(await fontText!.collectReferences(appId: appId));
  }
  if (fontSmallText != null) {
    referencesCollector
        .addAll(await fontSmallText!.collectReferences(appId: appId));
  }
  if (fontHighlight1 != null) {
    referencesCollector
        .addAll(await fontHighlight1!.collectReferences(appId: appId));
  }
  if (fontHighlight2 != null) {
    referencesCollector
        .addAll(await fontHighlight2!.collectReferences(appId: appId));
  }
  if (fontLink != null) {
    referencesCollector
        .addAll(await fontLink!.collectReferences(appId: appId));
  }
  if (dialogBackgroundColor != null) {
    referencesCollector
        .addAll(await dialogBackgroundColor!.collectReferences(appId: appId));
  }
  if (dialogSeperatorColor != null) {
    referencesCollector
        .addAll(await dialogSeperatorColor!.collectReferences(appId: appId));
  }
  if (popupMenuButtonColor != null) {
    referencesCollector
        .addAll(await popupMenuButtonColor!.collectReferences(appId: appId));
  }
  if (textBubbleBackgroundColor != null) {
    referencesCollector.addAll(
        await textBubbleBackgroundColor!.collectReferences(appId: appId));
  }
  if (dropdownButtonnColor != null) {
    referencesCollector
        .addAll(await dropdownButtonnColor!.collectReferences(appId: appId));
  }
  if (listTileColor != null) {
    referencesCollector
        .addAll(await listTileColor!.collectReferences(appId: appId));
  }
  return referencesCollector;
}