TextEditorConfigs constructor
const
TextEditorConfigs({
- bool enabled = true,
- bool canToggleTextAlign = true,
- bool canToggleBackgroundMode = true,
- bool canChangeFontScale = true,
- double initFontSize = 24.0,
- TextAlign initialTextAlign = TextAlign.center,
- double initFontScale = 1.0,
- double maxFontScale = 3.0,
- double minFontScale = 0.3,
- List<
TextStyle> ? customTextStyles, - LayerBackgroundMode initialBackgroundColorMode = LayerBackgroundMode.backgroundAndColor,
Creates an instance of TextEditorConfigs with optional settings.
By default, the text editor is enabled, and most text formatting options are enabled. The initial font size is set to 24.0.
Implementation
const TextEditorConfigs({
this.enabled = true,
this.canToggleTextAlign = true,
this.canToggleBackgroundMode = true,
this.canChangeFontScale = true,
this.initFontSize = 24.0,
this.initialTextAlign = TextAlign.center,
this.initFontScale = 1.0,
this.maxFontScale = 3.0,
this.minFontScale = 0.3,
this.customTextStyles,
this.initialBackgroundColorMode = LayerBackgroundMode.backgroundAndColor,
}) : assert(initFontSize > 0, 'initFontSize must be positive');