ThemeData.raw constructor

const ThemeData.raw({@required Brightness brightness, @required Color primaryColor, @required Brightness primaryColorBrightness, @required Color primaryColorLight, @required Color primaryColorDark, @required Color canvasColor, @required Color accentColor, @required Brightness accentColorBrightness, @required Color scaffoldBackgroundColor, @required Color bottomAppBarColor, @required Color cardColor, @required Color dividerColor, @required Color focusColor, @required Color hoverColor, @required Color highlightColor, @required Color splashColor, @required InteractiveInkFeatureFactory splashFactory, @required Color selectedRowColor, @required Color unselectedWidgetColor, @required Color disabledColor, @required ButtonThemeData buttonTheme, @required Color buttonColor, @required ToggleButtonsThemeData toggleButtonsTheme, @required Color secondaryHeaderColor, @required Color textSelectionColor, @required Color cursorColor, @required Color textSelectionHandleColor, @required Color backgroundColor, @required Color dialogBackgroundColor, @required Color indicatorColor, @required Color hintColor, @required Color errorColor, @required Color toggleableActiveColor, @required TextTheme textTheme, @required TextTheme primaryTextTheme, @required TextTheme accentTextTheme, @required InputDecorationTheme inputDecorationTheme, @required IconThemeData iconTheme, @required IconThemeData primaryIconTheme, @required IconThemeData accentIconTheme, @required SliderThemeData sliderTheme, @required TabBarTheme tabBarTheme, @required TooltipThemeData tooltipTheme, @required CardTheme cardTheme, @required ChipThemeData chipTheme, @required TargetPlatform platform, @required MaterialTapTargetSize materialTapTargetSize, @required bool applyElevationOverlayColor, @required PageTransitionsTheme pageTransitionsTheme, @required AppBarTheme appBarTheme, @required BottomAppBarTheme bottomAppBarTheme, @required ColorScheme colorScheme, @required DialogTheme dialogTheme, @required FloatingActionButtonThemeData floatingActionButtonTheme, @required Typography typography, @required CupertinoThemeData cupertinoOverrideTheme, @required SnackBarThemeData snackBarTheme, @required BottomSheetThemeData bottomSheetTheme, @required PopupMenuThemeData popupMenuTheme, @required MaterialBannerThemeData bannerTheme, @required DividerThemeData dividerTheme })

Create a ThemeData given a set of exact values. All the values must be specified. They all must also be non-null except for cupertinoOverrideTheme.

This will rarely be used directly. It is used by lerp to create intermediate themes based on two themes created with the new ThemeData constructor.

Implementation

const ThemeData.raw({
  // Warning: make sure these properties are in the exact same order as in
  // operator == and in the hashValues method and in the order of fields
  // in this class, and in the lerp() method.
  @required this.brightness,
  @required this.primaryColor,
  @required this.primaryColorBrightness,
  @required this.primaryColorLight,
  @required this.primaryColorDark,
  @required this.canvasColor,
  @required this.accentColor,
  @required this.accentColorBrightness,
  @required this.scaffoldBackgroundColor,
  @required this.bottomAppBarColor,
  @required this.cardColor,
  @required this.dividerColor,
  @required this.focusColor,
  @required this.hoverColor,
  @required this.highlightColor,
  @required this.splashColor,
  @required this.splashFactory,
  @required this.selectedRowColor,
  @required this.unselectedWidgetColor,
  @required this.disabledColor,
  @required this.buttonTheme,
  @required this.buttonColor,
  @required this.toggleButtonsTheme,
  @required this.secondaryHeaderColor,
  @required this.textSelectionColor,
  @required this.cursorColor,
  @required this.textSelectionHandleColor,
  @required this.backgroundColor,
  @required this.dialogBackgroundColor,
  @required this.indicatorColor,
  @required this.hintColor,
  @required this.errorColor,
  @required this.toggleableActiveColor,
  @required this.textTheme,
  @required this.primaryTextTheme,
  @required this.accentTextTheme,
  @required this.inputDecorationTheme,
  @required this.iconTheme,
  @required this.primaryIconTheme,
  @required this.accentIconTheme,
  @required this.sliderTheme,
  @required this.tabBarTheme,
  @required this.tooltipTheme,
  @required this.cardTheme,
  @required this.chipTheme,
  @required this.platform,
  @required this.materialTapTargetSize,
  @required this.applyElevationOverlayColor,
  @required this.pageTransitionsTheme,
  @required this.appBarTheme,
  @required this.bottomAppBarTheme,
  @required this.colorScheme,
  @required this.dialogTheme,
  @required this.floatingActionButtonTheme,
  @required this.typography,
  @required this.cupertinoOverrideTheme,
  @required this.snackBarTheme,
  @required this.bottomSheetTheme,
  @required this.popupMenuTheme,
  @required this.bannerTheme,
  @required this.dividerTheme,
}) : assert(brightness != null),
     assert(primaryColor != null),
     assert(primaryColorBrightness != null),
     assert(primaryColorLight != null),
     assert(primaryColorDark != null),
     assert(accentColor != null),
     assert(accentColorBrightness != null),
     assert(canvasColor != null),
     assert(scaffoldBackgroundColor != null),
     assert(bottomAppBarColor != null),
     assert(cardColor != null),
     assert(dividerColor != null),
     assert(focusColor != null),
     assert(hoverColor != null),
     assert(highlightColor != null),
     assert(splashColor != null),
     assert(splashFactory != null),
     assert(selectedRowColor != null),
     assert(unselectedWidgetColor != null),
     assert(disabledColor != null),
     assert(toggleableActiveColor != null),
     assert(buttonTheme != null),
     assert(toggleButtonsTheme != null),
     assert(secondaryHeaderColor != null),
     assert(textSelectionColor != null),
     assert(cursorColor != null),
     assert(textSelectionHandleColor != null),
     assert(backgroundColor != null),
     assert(dialogBackgroundColor != null),
     assert(indicatorColor != null),
     assert(hintColor != null),
     assert(errorColor != null),
     assert(textTheme != null),
     assert(primaryTextTheme != null),
     assert(accentTextTheme != null),
     assert(inputDecorationTheme != null),
     assert(iconTheme != null),
     assert(primaryIconTheme != null),
     assert(accentIconTheme != null),
     assert(sliderTheme != null),
     assert(tabBarTheme != null),
     assert(tooltipTheme != null),
     assert(cardTheme != null),
     assert(chipTheme != null),
     assert(platform != null),
     assert(materialTapTargetSize != null),
     assert(pageTransitionsTheme != null),
     assert(appBarTheme != null),
     assert(bottomAppBarTheme != null),
     assert(colorScheme != null),
     assert(dialogTheme != null),
     assert(floatingActionButtonTheme != null),
     assert(typography != null),
     assert(snackBarTheme != null),
     assert(bottomSheetTheme != null),
     assert(popupMenuTheme != null),
     assert(bannerTheme != null),
     assert(dividerTheme != null);