Skip to content

Instantly share code, notes, and snippets.

@ChangJoo-Park
Created January 19, 2020 01:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChangJoo-Park/a1745cd73f6ba2fee9f7de59a9776599 to your computer and use it in GitHub Desktop.
Save ChangJoo-Park/a1745cd73f6ba2fee9f7de59a9776599 to your computer and use it in GitHub Desktop.
PlatformException handling
try {
granted = await hasPermissions();
} on PlatformException catch (e) {
if (e.message.contains('already')) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment