Cart class

Inheritance
  • Object
  • GetLifeCycle
  • DisposableInterface
  • GetxController
  • Cart

Constructors

Cart()

Properties

currentItem ApiPost?
getter/setter pair
deliveryFeeFreeLimit int
getter/setter pair
deliveryFeePrice int
no setter
form CartForm
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
no setterinherited
initialized bool
Checks whether the controller has already been initialized.
no setterinherited
isClosed bool
Checks whether the controller has already been closed.
no setterinherited
items List<ApiPost>
getter/setter pair
listeners int
no setterinherited
onDelete → InternalFinalCallback<void>
Internal callback that starts the cycle of this controller.
finalinherited
onStart → InternalFinalCallback<void>
Called at the exact moment the widget is allocated in memory. It uses an internal "callable" type, to avoid any @overrides in subclases. This method should be internal and is required to define the lifetime cycle of the subclass.
finalinherited
paymentAmount int
결제(구매) 페이지에서 최종 결제 금액 제시
no setter
pointToUse int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

$configureLifeCycle() → void
inherited
addListener(GetStateUpdate listener) → Disposer
Register a closure to be called when the object notifies its listeners.
inherited
addListenerId(Object? key, GetStateUpdate listener) → Disposer
inherited
addOption(String option) → dynamic
현재 상품에 옵션을 추가한다.
clear() → dynamic
decrease(ApiPost item, String option) → dynamic
delete(ApiPost item, [String? option]) → dynamic
옵션 또는 상품 자체를 카트에서 삭제한다.
dispose() → void
inherited
disposeId(Object id) → void
To dispose an id from future updates(), this ids are registered by GetBuilder() or similar, so is a way to unlink the state change with the Widget from the Controller.
inherited
increase(ApiPost item, String option) → dynamic
loadOptions() → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyChildrens() → void
inherited
onClose() → void
Called before onDelete method. onClose might be used to dispose resources used by the controller. Like closing events, or streams before the controller is destroyed. Or dispose objects that can potentially create some memory leaks, like TextEditingControllers, AnimationControllers. Might be useful as well to persist some data on disk.
inherited
onInit() → void
Called immediately after the widget is allocated in memory. You might use this to initialize something for the controller.
override
onReady() → void
Called 1 frame after onInit(). It is the perfect place to enter navigation events, like snackbar, dialogs, or a new route, or async request.
inherited
pointToSave({ApiPost? item}) int
price({ApiPost? item}) String
카트에 저장된 전체 상품의 금액
priceInt({ApiPost? item}) int
refresh() → void
inherited
refreshGroup(Object id) → void
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies.
inherited
removeListenerId(Object id, VoidCallback listener) → void
inherited
save(ApiPost item) → dynamic
! call by reference 로 인해서 items.add() 로 바로 하면 안되고, save() 를 통해서 저장해야한다. @todo ApiPost.itemClone() 함수를 만들 것. @todo 그래서, items 는 private 으로 되어야 한다.
serializeItem(ApiPost item) → dynamic
setCurrentItem(ApiPost item) → dynamic
상품 페이지를 열었을 때, 현재 상품을 지정한다. 상품 페이지를 열었을 때만(때 마다) 한번 사용.
toJson({List<ApiPost>? orderItems}) → dynamic
호환성을 위해서 orderItems 를 입력 받음.
toString() String
A string representation of this object.
override
update([List<Object>? ids, bool condition = true]) → void
Rebuilds GetBuilder each time you call update(); Can take a List of ids, that will only update the matching GetBuilder( id: ), ids can be reused among GetBuilders like group tags. The update will only notify the Widgets, if condition is true.
inherited
usePoint(int point) → dynamic
포인트 사용

Operators

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