privateParameters property

  1. @override
DynamicMap get privateParameters
override

Private parameters for the command.

コマンド用の非公開パラメーター。

Implementation

@override
DynamicMap get privateParameters {
  return {
    _kTitleKey: title,
    _kTextKey: text,
    _kChannelIdKey: channelId,
    _kDataKey: {
      if (data != null) ...data!,
      if (link != null) _kLinkKey: link!.path,
    },
    if (sound != null) _kSoundKey: sound,
    if (badgeCount != null) _kBadgeCountKey: badgeCount,
    ...target.toJson(),
  };
}