isFamilyShared method
检查产品是否通过家庭共享获得
Implementation
@override
Future<bool> isFamilyShared({required String productId}) async {
safeLog('📤 [MethodChannel] 调用 isFamilyShared, productId: $productId');
try {
final result =
await methodChannel.invokeMethod('isFamilyShared', {
'productId': productId,
})
as bool;
safeLog('✅ [MethodChannel] isFamilyShared 返回: $result');
return result;
} catch (e, stackTrace) {
safeLog(
'❌ [MethodChannel] isFamilyShared 失败: $e',
error: e,
stackTrace: stackTrace,
);
rethrow;
}
}