bool shouldSendToThisPlatform(List<Type>? allowedTypes) { if (allowedTypes == null || allowedTypes.isEmpty) return false; return allowedTypes.contains(this.runtimeType); }