NudgeButton class
Constructors
-
NudgeButton(NudgeBox box, {required String label, required NudgeButtonVariant variant, required double fontSize, required FontWeight weight, required Color background, required Color textColor, required double radius, required List<
EngageAction> actions, required bool isPrimary}) -
const
Properties
-
actions
→ List<
EngageAction> -
Ordered actions to run on tap (may be empty). Run by EngageActionRunner.
final
- background → Color
-
final
- box → NudgeBox
-
finalinherited
- fontSize → double
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPrimary → bool
-
Marks this as the experience's primary call-to-action, distinguishing the
emitted click (
cta_primaryvscta_secondary). A button tap emits anExperienceClickedevent only after its actions run successfully; a button with no actions, or one whose action throws, emits nothing.final - label → String
-
final
- radius → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textColor → Color
-
final
- variant → NudgeButtonVariant
-
final
- weight → FontWeight
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited