QuillFontFamilyButton constructor

const QuillFontFamilyButton({
  1. required Map<String, String> rawItemsMap,
  2. required Attribute attribute,
  3. required QuillController controller,
  4. @Deprecated('It is not required because of `rawItemsMap`') List<PopupMenuEntry<String>>? items,
  5. ValueChanged<String>? onSelected,
  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. bool renderFontFamilies = true,
  17. String? initialValue,
  18. TextOverflow labelOverflow = TextOverflow.visible,
  19. bool overrideTooltipByFontFamily = false,
  20. double? itemHeight,
  21. EdgeInsets? itemPadding,
  22. Color? defaultItemColor = Colors.red,
  23. Key? key,
})

Implementation

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