SetMethodCallHandler

[](

const

flutter

::

MethodCall

<>&

call

std

::

unique_ptr

flutter

::

MethodResult

<>>

result

// TODO

});

And replace with the following:

channel

SetMethodCallHandler

[](

const

flutter

::

MethodCall

<>&

call

std

::

unique_ptr

flutter

::

MethodResult

<>>

result

if

call