Skip to content

Commit

Permalink
Fix android argument cast error
Browse files Browse the repository at this point in the history
  • Loading branch information
gdelataillade committed Mar 10, 2024
1 parent 4a62fc5 commit d6433a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/android_alarm.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class AndroidAlarm {
static Future<dynamic> handleMethodCall(MethodCall call) async {
try {
if (call.method == 'alarmRinging') {
final arguments = call.arguments as Map<String, dynamic>;
final arguments = call.arguments as Map<dynamic, dynamic>;
final id = arguments['id'] as int;
final settings = Alarm.getAlarm(id);
if (settings != null) Alarm.ringStream.add(settings);
Expand Down

0 comments on commit d6433a1

Please sign in to comment.