Skip to content

Commit eeb3479

Browse files
committed
add doc comment to the setLanguage method
- For consistency with the other public methods, let's add a doc comment to the setLanguage method
1 parent 55526ea commit eeb3479

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/onesignal_flutter.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,8 @@ class OneSignal {
379379
return results.cast<String, dynamic>();
380380
}
381381

382+
/// Sets the user's language.
383+
/// Applies also to the email and/or SMS player if those are logged in on the device.
382384
Future<Map<String, dynamic>> setLanguage(String language) async {
383385
Map<dynamic, dynamic> results =
384386
await (_channel.invokeMethod("OneSignal#setLanguage", {'language' : language}));

0 commit comments

Comments
 (0)