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 highlightColor, @required Color splashColor, @required InteractiveInkFeatureFactory splashFactory, @required Color selectedRowColor, @required Color unselectedWidgetColor, @required Color disabledColor, @required ButtonThemeData buttonTheme, @required Color buttonColor, @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 ChipThemeData chipTheme, @required TargetPlatform platform, @required MaterialTapTargetSize materialTapTargetSize, @required PageTransitionsTheme pageTransitionsTheme, @required ColorScheme colorScheme, @required DialogTheme dialogTheme, @required Typography typography })

Create a ThemeData given a set of exact values. All the values must be specified.

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.highlightColor,
  @required this.splashColor,
  @required this.splashFactory,
  @required this.selectedRowColor,
  @required this.unselectedWidgetColor,
  @required this.disabledColor,
  @required this.buttonTheme,
  @required this.buttonColor,
  @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.chipTheme,
  @required this.platform,
  @required this.materialTapTargetSize,
  @required this.pageTransitionsTheme,
  @required this.colorScheme,
  @required this.dialogTheme,
  @required this.typography,
}) : 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(highlightColor != null),
     assert(splashColor != null),
     assert(splashFactory != null),
     assert(selectedRowColor != null),
     assert(unselectedWidgetColor != null),
     assert(disabledColor != null),
     assert(toggleableActiveColor != null),
     assert(buttonTheme != 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(chipTheme != null),
     assert(platform != null),
     assert(materialTapTargetSize != null),
     assert(pageTransitionsTheme != null),
     assert(colorScheme != null),
     assert(dialogTheme != null),
     assert(typography != null);