gdelataillade/alarm

Error: The argument type 'bool' can't be assigned to the parameter type 'String?'.

Closed this issue · 1 comments

stopButton of NotificationSettings seems to take a String? not a boolean (like in the README).

Hi @louwers

Thanks for reporting the error. You're right, stopButton should take a String?. It used to take a boolean but I thought it was more relevant to take a String?. This is what the documentation says:

  /// The text to display on the stop button of the notification.
  ///
  /// Won't work on iOS if app was killed.
  /// If null, button will not be shown. Null by default.
  final String? stopButton;

I'll fix the README, thanks.