5#ifndef FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_METHOD_RESULT_H_
6#define FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_METHOD_RESULT_H_
16template <
typename T = EncodableValue>
41 void Error(
const std::string& error_code,
42 const std::string& error_message,
43 const T& error_details) {
52 void Error(
const std::string& error_code,
53 const std::string& error_message =
"") {
67 const std::string& error_message,
68 const T* error_details) = 0;
virtual void ErrorInternal(const std::string &error_code, const std::string &error_message, const T *error_details)=0
MethodResult & operator=(MethodResult const &)=delete
MethodResult(MethodResult const &)=delete
void Error(const std::string &error_code, const std::string &error_message, const T &error_details)
virtual void SuccessInternal(const T *result)=0
virtual void NotImplementedInternal()=0
void Success(const T &result)
void Error(const std::string &error_code, const std::string &error_message="")
virtual ~MethodResult()=default