UITheme constructor

UITheme({
  1. UIColorRef? background,
  2. UIColorRef? foreground,
  3. UIColorRef? accent,
  4. Iterable<MapEntry<String, UIColorRef>>? custom,
})

Implementation

factory UITheme({
  UIColorRef? background,
  UIColorRef? foreground,
  UIColorRef? accent,
  $core.Iterable<$core.MapEntry<$core.String, UIColorRef>>? custom,
}) {
  final result = create();
  if (background != null) result.background = background;
  if (foreground != null) result.foreground = foreground;
  if (accent != null) result.accent = accent;
  if (custom != null) result.custom.addEntries(custom);
  return result;
}