renderFiglet function

String renderFiglet(
  1. String text,
  2. Font font, {
  3. FigletRenderDirection direction = FigletRenderDirection.leftToRight,
})

Renders the given text in the specified font.

Optionally specify the direction, which defaults to FigletRenderDirection.leftToRight

Implementation

String renderFiglet(
  String text,
  Font font, {
  FigletRenderDirection direction = FigletRenderDirection.leftToRight,
}) {
  return FIGlet.renderFIGure(text, font, direction: direction);
}