text static method
Implementation
static Map<String, dynamic> text(
String text, {
bool bold = false,
bool italic = false,
bool strikethrough = false,
bool underline = false,
}) =>
{
'type': 'TextToken',
'text': text,
'style': {
if (bold) 'bold': true,
if (italic) 'italic': true,
if (strikethrough) 'strikethrough': true,
if (underline) 'underline': true,
},
};