onMethodHandler method
Implementation
void onMethodHandler(MethodCall call) {
try {
if (call.method == "setOverlayWindowId") {
var viewId = call.arguments as String?;
if (viewId != null && overlayWindowId == null) {
overlayWindowId = viewId;
_stateStreamController.add(overlayWindowId!);
log('overlayWindowId: $overlayWindowId');
}
} else {
throw Exception('not implemented ${call.method}');
}
} catch (e) {
log('onMethodHandler error: $e');
}
}