QuillFontSizeButton constructor

const QuillFontSizeButton({
  1. required Map<String, String> rawItemsMap,
  2. required Attribute attribute,
  3. required QuillController controller,
  4. ValueChanged<String>? onSelected,
  5. @Deprecated('It is not required because of `rawItemsMap`') List<PopupMenuEntry<String>>? items,
  6. double iconSize = 40,
  7. Color? fillColor,
  8. double hoverElevation = 1,
  9. double highlightElevation = 1,
  10. QuillIconTheme? iconTheme,
  11. VoidCallback? afterButtonPressed,
  12. String? tooltip,
  13. EdgeInsetsGeometry? padding,
  14. TextStyle? style,
  15. double? width,
  16. String? initialValue,
  17. TextOverflow labelOverflow = TextOverflow.visible,
  18. double? itemHeight,
  19. EdgeInsets? itemPadding,
  20. Color? defaultItemColor = Colors.red,
  21. Key? key,
})

Implementation

const QuillFontSizeButton({
  required this.rawItemsMap,
  required this.attribute,
  required this.controller,
  this.onSelected,
  @Deprecated('It is not required because of `rawItemsMap`') this.items,
  this.iconSize = 40,
  this.fillColor,
  this.hoverElevation = 1,
  this.highlightElevation = 1,
  this.iconTheme,
  this.afterButtonPressed,
  this.tooltip,
  this.padding,
  this.style,
  this.width,
  this.initialValue,
  this.labelOverflow = TextOverflow.visible,
  this.itemHeight,
  this.itemPadding,
  this.defaultItemColor = Colors.red,
  Key? key,
})  : assert(rawItemsMap.length > 0),
      assert(initialValue == null || initialValue.length > 0),
      super(key: key);