LabelPolicy constructor

LabelPolicy({
  1. ObjectDetails? details,
  2. String? primaryColor,
  3. bool? isDefault,
  4. bool? hideLoginNameSuffix,
  5. String? warnColor,
  6. String? backgroundColor,
  7. String? fontColor,
  8. String? primaryColorDark,
  9. String? backgroundColorDark,
  10. String? warnColorDark,
  11. String? fontColorDark,
  12. bool? disableWatermark,
  13. String? logoUrl,
  14. String? iconUrl,
  15. String? logoUrlDark,
  16. String? iconUrlDark,
  17. String? fontUrl,
  18. ThemeMode? themeMode,
})

Implementation

factory LabelPolicy({
  $8.ObjectDetails? details,
  $core.String? primaryColor,
  $core.bool? isDefault,
  $core.bool? hideLoginNameSuffix,
  $core.String? warnColor,
  $core.String? backgroundColor,
  $core.String? fontColor,
  $core.String? primaryColorDark,
  $core.String? backgroundColorDark,
  $core.String? warnColorDark,
  $core.String? fontColorDark,
  $core.bool? disableWatermark,
  $core.String? logoUrl,
  $core.String? iconUrl,
  $core.String? logoUrlDark,
  $core.String? iconUrlDark,
  $core.String? fontUrl,
  ThemeMode? themeMode,
}) {
  final $result = create();
  if (details != null) {
    $result.details = details;
  }
  if (primaryColor != null) {
    $result.primaryColor = primaryColor;
  }
  if (isDefault != null) {
    $result.isDefault = isDefault;
  }
  if (hideLoginNameSuffix != null) {
    $result.hideLoginNameSuffix = hideLoginNameSuffix;
  }
  if (warnColor != null) {
    $result.warnColor = warnColor;
  }
  if (backgroundColor != null) {
    $result.backgroundColor = backgroundColor;
  }
  if (fontColor != null) {
    $result.fontColor = fontColor;
  }
  if (primaryColorDark != null) {
    $result.primaryColorDark = primaryColorDark;
  }
  if (backgroundColorDark != null) {
    $result.backgroundColorDark = backgroundColorDark;
  }
  if (warnColorDark != null) {
    $result.warnColorDark = warnColorDark;
  }
  if (fontColorDark != null) {
    $result.fontColorDark = fontColorDark;
  }
  if (disableWatermark != null) {
    $result.disableWatermark = disableWatermark;
  }
  if (logoUrl != null) {
    $result.logoUrl = logoUrl;
  }
  if (iconUrl != null) {
    $result.iconUrl = iconUrl;
  }
  if (logoUrlDark != null) {
    $result.logoUrlDark = logoUrlDark;
  }
  if (iconUrlDark != null) {
    $result.iconUrlDark = iconUrlDark;
  }
  if (fontUrl != null) {
    $result.fontUrl = fontUrl;
  }
  if (themeMode != null) {
    $result.themeMode = themeMode;
  }
  return $result;
}