itisnajim/device_policy_controller

Different invokeMethod calls.

Opened this issue · 0 comments

Thanks for that plugin. Really helpfull.

Is there a reason to keep some MethodChannel calls like this:

Future addUserRestrictions(List restrictions) async {
return await _methodChannel.invokeMethod(
'addUserRestrictions', restrictions);
}

instead of this:

Future addUserRestrictions(List restrictions) async {
return await _methodChannel.invokeMethod(
'addUserRestrictions', {'restrictions': restrictions});
}

?