From 3b36de64c3200f65191c654f01acc8df4c633d44 Mon Sep 17 00:00:00 2001 From: Michael Bui <25263378+MaikuB@users.noreply.github.com> Date: Tue, 12 Nov 2024 22:27:07 +1100 Subject: [PATCH] prevent helper methods in platform interface being exported by plugin (#2454) --- .../lib/flutter_local_notifications.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flutter_local_notifications/lib/flutter_local_notifications.dart b/flutter_local_notifications/lib/flutter_local_notifications.dart index c97d57460..349106fb4 100644 --- a/flutter_local_notifications/lib/flutter_local_notifications.dart +++ b/flutter_local_notifications/lib/flutter_local_notifications.dart @@ -1,5 +1,7 @@ export 'package:flutter_local_notifications_linux/flutter_local_notifications_linux.dart'; -export 'package:flutter_local_notifications_platform_interface/flutter_local_notifications_platform_interface.dart'; +// Exports what's defined in platform interface but hide helper methods +export 'package:flutter_local_notifications_platform_interface/flutter_local_notifications_platform_interface.dart' + hide validateId, validateRepeatDurationInterval; export 'package:flutter_local_notifications_windows/flutter_local_notifications_windows.dart'; export 'src/flutter_local_notifications_plugin.dart';