5 #ifndef FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_METHOD_RESULT_FUNCTIONS_H_
6 #define FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_METHOD_RESULT_FUNCTIONS_H_
23 const std::string& error_message,
24 const T* error_details)>;
30 template <
typename T = EncodableValue>
38 : on_success_(on_success),
40 on_not_implemented_(std::move(on_not_implemented)) {}
58 const std::string& error_message,
59 const T* error_details)
override {
61 on_error_(error_code, error_message, error_details);
67 if (on_not_implemented_) {
68 on_not_implemented_();
80 #endif // FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_METHOD_RESULT_FUNCTIONS_H_