createSoundMessageFromFullPath method

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

Create a sound message from a full path soundPath Path duration Duration in seconds

Implementation

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