TextComponent.customFont constructor

TextComponent.customFont(
  1. String char, {
  2. Color? color = Color.White,
  3. bool? bold,
  4. bool? underlined,
  5. bool? italic,
  6. bool? strikethrough,
  7. bool? obfuscated,
  8. TextClickEvent? clickEvent,
  9. TextHoverEvent? hoverEvent,
  10. String? insertion,
})
TextComponent.customFont
String a Custom Font Character(\uHEX) to insert in your text
...same properties... from TextComponent
TextComponent.customFont('\uFaa4')
⇒ {'text':'\uFaa4','color':'white'}

Implementation

TextComponent.customFont(
  String char, {
  this.color = Color.White,
  this.bold,
  this.underlined,
  this.italic,
  this.strikethrough,
  this.obfuscated,
  this.clickEvent,
  this.hoverEvent,
  this.insertion,
}) : value = {'text': char};