Speaker constructor

Speaker(
  1. {MessageHandler onSpeakEnd,
  2. MessageHandler onSpeakFailed}
)

Implementation

Speaker({MessageHandler onSpeakEnd, MessageHandler onSpeakFailed}) {
  _onSpeakEnd = onSpeakEnd;
  _onSpeakFailed = onSpeakFailed;
  _channel.setMethodCallHandler(_handleMethod);
}