DarwinNotificationAction.text constructor

DarwinNotificationAction.text(
  1. String identifier,
  2. String title,
  3. {required String buttonTitle,
  4. String? placeholder,
  5. Set<DarwinNotificationActionOption> options = const <DarwinNotificationActionOption>{}}
)

Creates a UNTextInputNotificationAction to collect user defined input.

Implementation

factory DarwinNotificationAction.text(
  String identifier,
  String title, {
  required String buttonTitle,
  String? placeholder,
  Set<DarwinNotificationActionOption> options =
      const <DarwinNotificationActionOption>{},
}) =>
    DarwinNotificationAction._(
      _DarwinNotificationActionType.text,
      identifier,
      title,
      buttonTitle: buttonTitle,
      placeholder: placeholder,
      options: options,
    );