ValuePropDeclineInfo class

Information about value-proposition declines (the in-app "Not Now" tap on the value-proposition sheet shown before the OS permission dialog).

This is a distinct cohort from system-denied users (tracked by NotificationDenialInfo). A value-prop decline means the OS dialog was never shown.

Constructors

ValuePropDeclineInfo({required DateTime lastDeclineTime, required int declineCount})
const
ValuePropDeclineInfo.fromJson(Map<String, dynamic> json)
Creates a ValuePropDeclineInfo from JSON.
factory

Properties

declineCount int
Total number of times the user declined the value-proposition sheet.
final
hashCode int
The hash code for this object.
no setterinherited
lastDeclineTime DateTime
When the user last declined the value-proposition sheet.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({DateTime? lastDeclineTime, int? declineCount}) ValuePropDeclineInfo
Creates a copy of this ValuePropDeclineInfo with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this ValuePropDeclineInfo to JSON.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited