From 579cb50ed323e705edad20ebec4997f20b512bfa Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 30 Nov 2025 11:46:02 +0000 Subject: [PATCH 1/2] Initial plan From f2341c7a3b33e7e052c31165c5a9b6b5e3be173f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 30 Nov 2025 11:50:09 +0000 Subject: [PATCH 2/2] fix: Add type annotations and fix doc comment for flutter_lints 6.0.0 compatibility Co-authored-by: mtrezza <5673677+mtrezza@users.noreply.github.com> --- .../flutter/lib/src/notification/parse_notification.dart | 2 +- packages/flutter/lib/src/push/parse_push.dart | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/flutter/lib/src/notification/parse_notification.dart b/packages/flutter/lib/src/notification/parse_notification.dart index 547e2e32..9c3014d1 100644 --- a/packages/flutter/lib/src/notification/parse_notification.dart +++ b/packages/flutter/lib/src/notification/parse_notification.dart @@ -7,7 +7,7 @@ class ParseNotification { final void Function(String value) onShowNotification; /// Show notification - void showNotification(title) { + void showNotification(String title) { onShowNotification.call(title); } } diff --git a/packages/flutter/lib/src/push/parse_push.dart b/packages/flutter/lib/src/push/parse_push.dart index e931c59d..8bacd286 100644 --- a/packages/flutter/lib/src/push/parse_push.dart +++ b/packages/flutter/lib/src/push/parse_push.dart @@ -17,7 +17,7 @@ class ParsePush { /// Initialize ParsePush; for web a [vapidKey] is required. Future initialize( - firebaseMessaging, { + dynamic firebaseMessaging, { String? vapidKey, required ParseNotification parseNotification, }) async { @@ -39,7 +39,7 @@ class ParsePush { } /// Handle push notification message - void onMessage(message) { + void onMessage(dynamic message) { String pushId = message.data["push_id"] ?? ""; String timestamp = message.data["time"] ?? ""; String dataString = message.data["data"] ?? ""; @@ -86,7 +86,7 @@ class ParsePush { await parseInstallation.unsubscribeFromChannel(value); } - /// Returns an > containing all the channel names this device is subscribed to + /// Returns a `List` containing all the channel names this device is subscribed to Future> getSubscribedChannels() async { sdk.ParseInstallation parseInstallation = await sdk.ParseInstallation.currentInstallation();