PushRule class

Annotations
  • @_NameSource('spec')

Constructors

PushRule({required List<Object?> actions, List<PushCondition>? conditions, required bool default$, required bool enabled, String? pattern, required String ruleId})
PushRule.fromJson(Map<String, Object?> json)

Properties

actions List<Object?>
The actions to perform when this rule is matched.
getter/setter pair
conditions List<PushCondition>?
The conditions that must hold true for an event in order for a rule to be applied to an event. A rule with no conditions always matches. Only applicable to underride and override rules.
getter/setter pair
default$ bool
Whether this is a default rule, or has been set explicitly.
getter/setter pair
enabled bool
Whether the push rule is enabled or not.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
pattern String?
The glob-style pattern to match against. Only applicable to content rules.
getter/setter pair
ruleId String
The ID of this rule.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

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