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