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 amountCents should 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 percentage should be a number like 15 for 15%
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
Type of gratuity value: "PERCENTAGE" or "AMOUNT"
final
value num
The value:
final

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