ThemeData constructor
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,
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,
);
}