shareCustom method

Future<Uri> shareCustom(
  1. {required int templateId,
  2. Map<String, String>? templateArgs,
  3. Map<String, String>? serverCallbackArgs}
)

카카오디벨로퍼스에서 생성한 메시지 템플릿으로 카카오톡 공유 URI 생성, 메시지 템플릿 가이드 참고

Implementation

Future<Uri> shareCustom({
  required int templateId,
  Map<String, String>? templateArgs,
  Map<String, String>? serverCallbackArgs,
}) async {
  final response = await api.custom(templateId, templateArgs: templateArgs);
  return _talkWithResponse(response, serverCallbackArgs: serverCallbackArgs);
}