requestPermission method
Notification permissions are required to send a user push messages. Calling this method displays the permission dialog to the user and resolves if the permission is granted.
Implementation
Future requestPermission() async {
await handleThenable(jsObject.requestPermission()).then(dartify);
}