createSoundMessage method

Future<Message> createSoundMessage({
  1. required String soundPath,
  2. required int duration,
  3. String? operationID,
})

Create a sound message soundPath Path duration Duration in seconds

Implementation

Future<Message> createSoundMessage({
  required String soundPath,
  required int duration,
  String? operationID,
}) =>
    _channel
        .invokeMethod(
          'createSoundMessage',
          _buildParam({
            'soundPath': soundPath,
            "duration": duration,
            "operationID": Utils.checkOperationID(operationID),
          }),
        )
        .then((value) => Utils.toObj(value, (map) => Message.fromJson(map)));