playText static method

void playText(
  1. String text, {
  2. AlertSeverity severity = AlertSeverity.information,
})

Play TTS text.

Parameters

  • IN text Text to be played.
  • IN severity The severity.

Implementation

static void playText(
  String text, {
  AlertSeverity severity = AlertSeverity.information,
}) {
  staticMethod(
    'SoundService',
    'playText',
    args: <String, dynamic>{'text': text, 'severity': severity.id},
  );
}