# custom method Null safety

Future<SharingResult> custom(

1. int templateId,
2. {Map<String, String>? templateArgs}

)

카카오디벨로퍼스에서 생성한 메시지 템플릿을 카카오톡 메시지로 공유

## Implementation

    Future<SharingResult> custom(int templateId,
        {Map<String, String>? templateArgs}) async {
      return _validate(Constants.validate, {
        Constants.templateId: templateId,
        Constants.templateArgs:
            templateArgs == null ? null : jsonEncode(templateArgs)
      });
    }