fromEntityPlus static method
Future<MonaStyleAttributesModel?>
fromEntityPlus(
- String documentID,
- MonaStyleAttributesEntity? entity, {
- String? appId,
Implementation
static Future<MonaStyleAttributesModel?> fromEntityPlus(
String documentID, MonaStyleAttributesEntity? entity,
{String? appId}) async {
if (entity == null) return null;
return MonaStyleAttributesModel(
documentID: documentID,
appId: entity.appId ?? '',
formBackground: await BackgroundModel.fromEntityPlus(
entity.formBackground,
appId: appId),
appBackground: await BackgroundModel.fromEntityPlus(entity.appBackground,
appId: appId),
formGroupTitleColor: await RgbModel.fromEntityPlus(
entity.formGroupTitleColor,
appId: appId),
formFieldTextColor: await RgbModel.fromEntityPlus(
entity.formFieldTextColor,
appId: appId),
formFieldHeaderColor: await RgbModel.fromEntityPlus(
entity.formFieldHeaderColor,
appId: appId),
formFieldFocusColor: await RgbModel.fromEntityPlus(
entity.formFieldFocusColor,
appId: appId),
listBackground: await BackgroundModel.fromEntityPlus(
entity.listBackground,
appId: appId),
listTextItemColor:
await RgbModel.fromEntityPlus(entity.listTextItemColor, appId: appId),
floatingButtonForegroundColor: await RgbModel.fromEntityPlus(
entity.floatingButtonForegroundColor,
appId: appId),
floatingButtonBackgroundColor: await RgbModel.fromEntityPlus(
entity.floatingButtonBackgroundColor,
appId: appId),
dividerColor:
await RgbModel.fromEntityPlus(entity.dividerColor, appId: appId),
topicContainerBackground: await BackgroundModel.fromEntityPlus(
entity.topicContainerBackground,
appId: appId),
actionContainerBackground: await BackgroundModel.fromEntityPlus(
entity.actionContainerBackground,
appId: appId),
appBarBG:
await BackgroundModel.fromEntityPlus(entity.appBarBG, appId: appId),
appBarIconColor:
await RgbModel.fromEntityPlus(entity.appBarIconColor, appId: appId),
appBarSelectedIconColor: await RgbModel.fromEntityPlus(
entity.appBarSelectedIconColor,
appId: appId),
appBarMenuBackgroundColor: await RgbModel.fromEntityPlus(
entity.appBarMenuBackgroundColor,
appId: appId),
bottomNavigationBarBG: await BackgroundModel.fromEntityPlus(
entity.bottomNavigationBarBG,
appId: appId),
drawerBG:
await BackgroundModel.fromEntityPlus(entity.drawerBG, appId: appId),
drawerHeaderBG: await BackgroundModel.fromEntityPlus(
entity.drawerHeaderBG,
appId: appId),
profileDrawerBG: await BackgroundModel.fromEntityPlus(
entity.profileDrawerBG,
appId: appId),
profileDrawerHeaderBG: await BackgroundModel.fromEntityPlus(
entity.profileDrawerHeaderBG,
appId: appId),
backgroundColorHomeMenu: await RgbModel.fromEntityPlus(
entity.backgroundColorHomeMenu,
appId: appId),
h1: await FontModel.fromEntityPlus(entity.h1, appId: appId),
h2: await FontModel.fromEntityPlus(entity.h2, appId: appId),
h3: await FontModel.fromEntityPlus(entity.h3, appId: appId),
h4: await FontModel.fromEntityPlus(entity.h4, appId: appId),
h5: await FontModel.fromEntityPlus(entity.h5, appId: appId),
textFieldHeader:
await FontModel.fromEntityPlus(entity.textFieldHeader, appId: appId),
fontText: await FontModel.fromEntityPlus(entity.fontText, appId: appId),
fontSmallText:
await FontModel.fromEntityPlus(entity.fontSmallText, appId: appId),
fontHighlight1:
await FontModel.fromEntityPlus(entity.fontHighlight1, appId: appId),
fontHighlight2:
await FontModel.fromEntityPlus(entity.fontHighlight2, appId: appId),
fontLink: await FontModel.fromEntityPlus(entity.fontLink, appId: appId),
routeBuilder: toPageTransitionAnimation(entity.routeBuilder),
routeAnimationDuration: entity.routeAnimationDuration,
dialogBackgroundColor: await RgbModel.fromEntityPlus(
entity.dialogBackgroundColor,
appId: appId),
dialogSeperatorColor: await RgbModel.fromEntityPlus(
entity.dialogSeperatorColor,
appId: appId),
popupMenuButtonColor: await RgbModel.fromEntityPlus(
entity.popupMenuButtonColor,
appId: appId),
textBubbleBackgroundColor: await RgbModel.fromEntityPlus(
entity.textBubbleBackgroundColor,
appId: appId),
dropdownButtonnColor: await RgbModel.fromEntityPlus(
entity.dropdownButtonnColor,
appId: appId),
listTileColor:
await RgbModel.fromEntityPlus(entity.listTileColor, appId: appId),
);
}