@@ -30,7 +30,8 @@ int ExtractIntFromMap(const flutter::EncodableValue& arguments,
3030 if (std::holds_alternative<flutter::EncodableMap>(arguments)) {
3131 flutter::EncodableMap values = std::get<flutter::EncodableMap>(arguments);
3232 flutter::EncodableValue value = values[flutter::EncodableValue (key)];
33- if (std::holds_alternative<int >(value)) return std::get<int >(value);
33+ if (std::holds_alternative<int >(value))
34+ return std::get<int >(value);
3435 }
3536 return -1 ;
3637}
@@ -40,13 +41,15 @@ double ExtractDoubleFromMap(const flutter::EncodableValue& arguments,
4041 if (std::holds_alternative<flutter::EncodableMap>(arguments)) {
4142 flutter::EncodableMap values = std::get<flutter::EncodableMap>(arguments);
4243 flutter::EncodableValue value = values[flutter::EncodableValue (key)];
43- if (std::holds_alternative<double >(value)) return std::get<double >(value);
44+ if (std::holds_alternative<double >(value))
45+ return std::get<double >(value);
4446 }
4547 return -1 ;
4648}
4749
4850flutter::EncodableMap ExtractMapFromMap (
49- const flutter::EncodableValue& arguments, const char * key) {
51+ const flutter::EncodableValue& arguments,
52+ const char * key) {
5053 if (std::holds_alternative<flutter::EncodableMap>(arguments)) {
5154 flutter::EncodableMap values = std::get<flutter::EncodableMap>(arguments);
5255 flutter::EncodableValue value = values[flutter::EncodableValue (key)];
@@ -57,7 +60,8 @@ flutter::EncodableMap ExtractMapFromMap(
5760}
5861
5962flutter::EncodableList ExtractListFromMap (
60- const flutter::EncodableValue& arguments, const char * key) {
63+ const flutter::EncodableValue& arguments,
64+ const char * key) {
6165 if (std::holds_alternative<flutter::EncodableMap>(arguments)) {
6266 flutter::EncodableMap values = std::get<flutter::EncodableMap>(arguments);
6367 flutter::EncodableValue value = values[flutter::EncodableValue (key)];
@@ -72,15 +76,18 @@ PlatformViewChannel::PlatformViewChannel(flutter::BinaryMessenger* messenger,
7276 : engine_(engine),
7377 channel_(
7478 std::make_unique<flutter::MethodChannel<flutter::EncodableValue>>(
75- messenger, kChannelName ,
79+ messenger,
80+ kChannelName ,
7681 &flutter::StandardMethodCodec::GetInstance ())) {
7782 channel_->SetMethodCallHandler (
7883 [this ](const flutter::MethodCall<flutter::EncodableValue>& call,
7984 std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>>
8085 result) { HandleMethodCall (call, std::move (result)); });
8186}
8287
83- PlatformViewChannel::~PlatformViewChannel () { Dispose (); }
88+ PlatformViewChannel::~PlatformViewChannel () {
89+ Dispose ();
90+ }
8491
8592void PlatformViewChannel::Dispose () {
8693 // Clean-up view_instances_
0 commit comments