handleMethodCall method
Implementation
Future<dynamic> handleMethodCall(MethodCall call) async {
// The 'setup' call is now handled by the setup method override.
// Other method calls are delegated to handleWebMethodCall.
if (call.method == 'setup') {
// This case should ideally not be hit if Posthog().setup directly calls the overridden setup.
// However, to be safe, we can log or ignore.
// For now, let's assume direct call to overridden setup handles it.
return null;
}
return handleWebMethodCall(call);
}