@@ -19,7 +19,7 @@ class OneSignalLiveActivities {
1919
2020 /// Indicate this device has exited a live activity, identified within OneSignal by the [activityId] .
2121 ///
22- /// Only applies to iOS.
22+ /// Only applies to iOS.
2323 Future <void > exitLiveActivity (String activityId) async {
2424 if (Platform .isIOS) {
2525 return await _channel.invokeMethod (
@@ -41,16 +41,16 @@ class OneSignalLiveActivities {
4141 Future <void > setupDefault ({LiveActivitySetupOptions ? options}) async {
4242 if (Platform .isIOS) {
4343 dynamic optionsMap;
44-
45- if (options != null ) {
44+
45+ if (options != null ) {
4646 optionsMap = {
4747 'enablePushToStart' : options.enablePushToStart,
4848 'enablePushToUpdate' : options.enablePushToUpdate,
4949 };
50- }
50+ }
5151
52- return await _channel. invokeMethod (
53- "OneSignal#setupDefault" , {'options' : optionsMap });
52+ return await _channel
53+ . invokeMethod ( "OneSignal#setupDefault" , {'options' : optionsMap});
5454 }
5555 }
5656
@@ -60,10 +60,14 @@ class OneSignalLiveActivities {
6060 /// provided.
6161 ///
6262 /// Only applies to iOS.
63- Future <void > startDefault (String activityId, dynamic attributes, dynamic content) async {
63+ Future <void > startDefault (
64+ String activityId, dynamic attributes, dynamic content) async {
6465 if (Platform .isIOS) {
65- return await _channel.invokeMethod (
66- "OneSignal#startDefault" , { 'activityId' : activityId, 'attributes' : attributes, 'content' : content });
66+ return await _channel.invokeMethod ("OneSignal#startDefault" , {
67+ 'activityId' : activityId,
68+ 'attributes' : attributes,
69+ 'content' : content
70+ });
6771 }
6872 }
6973
@@ -98,7 +102,8 @@ class LiveActivitySetupOptions {
98102 bool _enablePushToStart = true ;
99103 bool _enablePushToUpdate = true ;
100104
101- LiveActivitySetupOptions ({bool enablePushToStart = true , bool enablePushToUpdate = true }) {
105+ LiveActivitySetupOptions (
106+ {bool enablePushToStart = true , bool enablePushToUpdate = true }) {
102107 this ._enablePushToStart = enablePushToStart;
103108 this ._enablePushToUpdate = enablePushToUpdate;
104109 }
@@ -112,4 +117,4 @@ class LiveActivitySetupOptions {
112117 bool get enablePushToUpdate {
113118 return this ._enablePushToUpdate;
114119 }
115- }
120+ }
0 commit comments