ThemeData constructor

ThemeData({
  1. TextStyle? defaultTextStyle,
  2. TextStyle? paragraphStyle,
  3. TextStyle? header0,
  4. TextStyle? header1,
  5. TextStyle? header2,
  6. TextStyle? header3,
  7. TextStyle? header4,
  8. TextStyle? header5,
  9. TextStyle? bulletStyle,
  10. TextStyle? tableHeader,
  11. TextStyle? tableCell,
  12. bool? softWrap,
  13. TextAlign? textAlign,
  14. TextOverflow? overflow,
  15. int? maxLines,
  16. IconThemeData? iconTheme,
})

Implementation

factory ThemeData({
  TextStyle? defaultTextStyle,
  TextStyle? paragraphStyle,
  TextStyle? header0,
  TextStyle? header1,
  TextStyle? header2,
  TextStyle? header3,
  TextStyle? header4,
  TextStyle? header5,
  TextStyle? bulletStyle,
  TextStyle? tableHeader,
  TextStyle? tableCell,
  bool? softWrap,
  TextAlign? textAlign,
  TextOverflow? overflow,
  int? maxLines,
  IconThemeData? iconTheme,
}) {
  final base = ThemeData.base();
  return base.copyWith(
    defaultTextStyle: defaultTextStyle,
    paragraphStyle: paragraphStyle,
    bulletStyle: bulletStyle,
    header0: header0,
    header1: header1,
    header2: header2,
    header3: header3,
    header4: header4,
    header5: header5,
    tableHeader: tableHeader,
    tableCell: tableCell,
    softWrap: softWrap,
    overflow: overflow,
    textAlign: textAlign,
    maxLines: maxLines,
    iconTheme: iconTheme,
  );
}