Skip to content

Commit

Permalink
Merge pull request creativecreatorormaybenot#3 from grisoftware/featu…
Browse files Browse the repository at this point in the history
…re/change-dependency-package-url

Feature/change dependency package url
  • Loading branch information
umutbariscoskun authored Jun 2, 2023
2 parents 8288520 + 12e1503 commit 46b9ce1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wakelock_platform_interface/lib/messages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ class WakelockApi {
final Map<Object?, Object?>? replyMap =
await channel.send(<Object>[arg_msg]) as Map<Object?, Object?>?;
if (replyMap == null) {
log('channel-error, package will be work don\'t worry');
throw PlatformException(
code: 'channel-error',
message: 'Unable to establish connection on channel.',
details: null,
);
} else if (replyMap['error'] != null) {
final Map<Object?, Object?> error =
(replyMap['error'] as Map<Object?, Object?>?)!;
Expand Down

0 comments on commit 46b9ce1

Please sign in to comment.