thenInlineCode method
Appends inline code to the current text widget.
The appended text is styled as inline code with background.
Parameters:
text(String, required): Code text to append.
Returns: Widget — a rich text widget with the appended code.
Example:
Text('Use ').thenInlineCode('myFunction()')
Implementation
Widget thenInlineCode(String text) {
return then(
WidgetSpan(
alignment: PlaceholderAlignment.middle,
child: Text(text).inlineCode(),
),
);
}