File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
packages/firebase_messaging Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -96,12 +96,12 @@ By default background messaging is not enabled. To handle messages in the backgr
9696 Future<dynamic> myBackgroundMessageHandler(Map<String, dynamic> message) {
9797 if (message.containsKey('data')) {
9898 // Handle data message
99- dynamic data = message['data'];
99+ final dynamic data = message['data'];
100100 }
101101
102102 if (message.containsKey('notification')) {
103103 // Handle notification message
104- dynamic notification = message['notification'];
104+ final dynamic notification = message['notification'];
105105 }
106106
107107 // Or do other work.
Original file line number Diff line number Diff line change @@ -15,12 +15,10 @@ void main() {
1515 TestWidgetsFlutterBinding .ensureInitialized ();
1616
1717 MockMethodChannel mockChannel;
18- MockMethodChannel mockBackgroundChannel;
1918 FirebaseMessaging firebaseMessaging;
2019
2120 setUp (() {
2221 mockChannel = MockMethodChannel ();
23- mockBackgroundChannel = MockMethodChannel ();
2422 firebaseMessaging = FirebaseMessaging .private (
2523 mockChannel, FakePlatform (operatingSystem: 'ios' ));
2624 });
You can’t perform that action at this time.
0 commit comments