KeysViewModel class
ViewModel for managing user keys and payment-related settings. Utilizes the Singleton pattern to ensure a single instance.
- Inheritance
-
- Object
- ChangeNotifier
- KeysViewModel
Constructors
- KeysViewModel.new()
-
Factory constructor to return the singleton instance.
factory
Properties
- expiredInMinuets ↔ int?
-
getter/setter pair
- getExpiredInMinuets → int?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isTestMode ↔ bool
-
Sets whether the test mode is enabled and notifies listeners of the change.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setExpiredInMinuets ← int?
-
Sets the expired time for the payment and notifies listeners of the change.
no getter
- userApiKey ↔ String
-
Sets the user's API key and notifies listeners of the change.
getter/setter pair
- userCancelUrl ↔ String?
-
Sets the cancel URL for user operations and notifies listeners of the change.
getter/setter pair
- userClintID ↔ String
-
Sets the client's ID and notifies listeners of the change.
getter/setter pair
- userCustomerID ↔ String
-
Sets the customer's ID and notifies listeners of the change.
getter/setter pair
- userDeleteError ↔ String?
-
Sets the error message for user deletion and notifies listeners of the change.
getter/setter pair
- userDeleteLoading ↔ String?
-
Sets the loading status for user deletion and notifies listeners of the change.
getter/setter pair
-
userMetadata
↔ Map<
String, dynamic> -
Sets the metadata for the user and notifies listeners of the change.
getter/setter pair
- userPKey ↔ String
-
Sets the user's public key and notifies listeners of the change.
getter/setter pair
-
userProducts
↔ List<
Product> -
Sets the list of user products and notifies listeners of the change.
getter/setter pair
- userSaveCard ↔ bool
-
Sets whether the user chose to save their card and notifies listeners of the change.
getter/setter pair
- userSavedCardBackground ↔ Color?
-
Sets the background color for the saved card widget and notifies listeners of the change.
getter/setter pair
- userSavedCardsAppBar ↔ Widget?
-
Sets the app bar widget for saved cards and notifies listeners of the change.
getter/setter pair
- userSavedCardTextColor ↔ Color?
-
Sets the text color for the saved card widget and notifies listeners of the change.
getter/setter pair
- userSelectCardLoading ↔ String
-
Sets the loading status for card selection and notifies listeners of the change.
getter/setter pair
- userSuccessUrl ↔ String?
-
Sets the success URL for user operations and notifies listeners of the change.
getter/setter pair
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited