Summary:
In the FlutterBeaconPlugin, the setScanPeriod and setBetweenScanPeriod method handlers within the onMethodCall function do not include return statements after invoking result.success or result.error.
This omission causes the method to continue execution and inadvertently call result.notImplemented(),
resulting in an IllegalStateException due to multiple responses being sent for a single method call.
Steps to Reproduce:
- Invoke the setScanPeriod method from the Flutter side with a valid scanPeriod argument.
- Observe that after successfully setting the scan period, an IllegalStateException is thrown.
Log: java.lang.IllegalStateException: Reply already submitted