BlockStyle constructor

const BlockStyle({
  1. TextStyle textStyle = const TextStyle(fontSize: 16),
  2. TextStyle emptyTextStyle = const TextStyle(fontSize: 16, color: Color(0xFF9E9E9E)),
  3. TextStyle editingTextStyle = const TextStyle(fontSize: 16),
  4. double indentWidth = 24.0,
  5. double bulletSpacing = 8.0,
  6. double bulletSize = 6.0,
  7. Color? bulletColor,
  8. double collapseIconSize = 20.0,
  9. EdgeInsets contentPadding = const EdgeInsets.symmetric(vertical: 2),
  10. String emptyBlockText = 'Empty block',
})

Implementation

const BlockStyle({
  this.textStyle = const TextStyle(fontSize: 16),
  this.emptyTextStyle = const TextStyle(
    fontSize: 16,
    color: Color(0xFF9E9E9E),
  ),
  this.editingTextStyle = const TextStyle(fontSize: 16),
  this.indentWidth = 24.0,
  this.bulletSpacing = 8.0,
  this.bulletSize = 6.0,
  this.bulletColor,
  this.collapseIconSize = 20.0,
  this.contentPadding = const EdgeInsets.symmetric(vertical: 2),
  this.emptyBlockText = 'Empty block',
});