ReaderConfig constructor
ReaderConfig({
- Axis axis = Axis.vertical,
- FontWeight fontWeight = FontWeight.normal,
- FontStyle fontStyle = FontStyle.normal,
- TextAlign textAlign = TextAlign.start,
- String fontFamily = "default",
- double fontSize = 16,
- double lineHeight = 1.6,
- EdgeInsets padding = const EdgeInsets.all(16),
- Color backgroundColor = Colors.white,
- Color foregroundColor = Colors.black,
Implementation
ReaderConfig({
this.axis = Axis.vertical,
this.fontWeight = FontWeight.normal,
this.fontStyle = FontStyle.normal,
this.textAlign = TextAlign.start,
this.fontFamily = "default",
this.fontSize = 16,
this.lineHeight = 1.6,
this.padding = const EdgeInsets.all(16),
this.backgroundColor = Colors.white,
this.foregroundColor = Colors.black,
});