GratuityQuickValue.amount constructor

GratuityQuickValue.amount(
  1. int amountCents
)

Create an amount-based gratuity quick value amountCents should be the amount in cents (e.g., 200 for $2.00)

Implementation

factory GratuityQuickValue.amount(int amountCents) {
  return GratuityQuickValue(
    type: 'AMOUNT',
    value: amountCents,
  );
}