From 20b6f2a4ea52462f1fa8a3b6014900ea52d7b4f3 Mon Sep 17 00:00:00 2001 From: Harsh Bhikadia Date: Thu, 1 Apr 2021 00:20:59 +0530 Subject: [PATCH] [doc] added dart type mapping in declaration comment (flutter/engine#25329) --- .../include/flutter/encodable_value.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/engine/src/flutter/shell/platform/common/client_wrapper/include/flutter/encodable_value.h b/engine/src/flutter/shell/platform/common/client_wrapper/include/flutter/encodable_value.h index 82d9b69769d..1fbbe7e552b 100644 --- a/engine/src/flutter/shell/platform/common/client_wrapper/include/flutter/encodable_value.h +++ b/engine/src/flutter/shell/platform/common/client_wrapper/include/flutter/encodable_value.h @@ -144,6 +144,20 @@ using EncodableValueVariant = std::variant null +// bool -> bool +// int32_t -> int +// int64_t -> int +// double -> double +// std::string -> String +// std::vector -> Uint8List +// std::vector -> Int32List +// std::vector -> Int64List +// std::vector -> Float64List +// EncodableList -> List +// EncodableMap -> Map class EncodableValue : public internal::EncodableValueVariant { public: // Rely on std::variant for most of the constructors/operators.