BrandingSettings constructor

BrandingSettings({
  1. Theme? lightTheme,
  2. Theme? darkTheme,
  3. String? fontUrl,
  4. bool? hideLoginNameSuffix,
  5. bool? disableWatermark,
  6. ResourceOwnerType? resourceOwnerType,
  7. ThemeMode? themeMode,
})

Implementation

factory BrandingSettings({
  Theme? lightTheme,
  Theme? darkTheme,
  $core.String? fontUrl,
  $core.bool? hideLoginNameSuffix,
  $core.bool? disableWatermark,
  $0.ResourceOwnerType? resourceOwnerType,
  ThemeMode? themeMode,
}) {
  final result = create();
  if (lightTheme != null) result.lightTheme = lightTheme;
  if (darkTheme != null) result.darkTheme = darkTheme;
  if (fontUrl != null) result.fontUrl = fontUrl;
  if (hideLoginNameSuffix != null)
    result.hideLoginNameSuffix = hideLoginNameSuffix;
  if (disableWatermark != null) result.disableWatermark = disableWatermark;
  if (resourceOwnerType != null) result.resourceOwnerType = resourceOwnerType;
  if (themeMode != null) result.themeMode = themeMode;
  return result;
}