GratuityQuickValue class
Represents a gratuity quick value that can be either a percentage or an amount
Constructors
- GratuityQuickValue({required String type, required num value})
- GratuityQuickValue.amount(int amountCents)
-
Create an amount-based gratuity quick value
amountCentsshould be the amount in cents (e.g., 200 for $2.00)factory -
GratuityQuickValue.fromMap(Map<
String, dynamic> map) -
factory
- GratuityQuickValue.percentage(num percentage)
-
Create a percentage-based gratuity quick value
percentageshould be a number like 15 for 15%factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited