createSoundMessage method Null safety

Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createSoundMessage(
  1. {required String soundPath,
  2. required int duration}
)

Create audio file soundPath audio file address duration duration

Implementation

Future<V2TimValueCallback<V2TimMsgCreateInfoResult>> createSoundMessage({
  required String soundPath,
  required int duration,
}) async {
  return ImFlutterPlatform.instance
      .createSoundMessage(soundPath: soundPath, duration: duration);
}