PaymentItemStatus enum Null safety

Copyright 2021 Google LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. The payment price statuses supported in the payment selector.

  • final_price determines that the price has been calculated and won't change.
  • pending expects changes to the final price in response to user selection or other circumstances that are not known when first requesting the payment.
  • unknown for any other scenario.
Inheritance

Constructors

PaymentItemStatus()
const

Values

unknown → const PaymentItemStatus
const PaymentItemStatus(0)
pending → const PaymentItemStatus
const PaymentItemStatus(1)
final_price → const PaymentItemStatus
const PaymentItemStatus(2)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<PaymentItemStatus>
A constant List of the values in this enum, in order of their declaration.
[unknown, pending, final_price]