CrossmintCheckoutLineItem class sealed
A single asset to purchase in a checkout order.
Use the named factory constructors to create line items:
- CrossmintCheckoutLineItem.collection — primary sale from a managed or
imported collection. Supports optional
callDatafor contract mint args. - CrossmintCheckoutLineItem.token — secondary sale of a specific token,
with optional
callDatafor contract arguments. - CrossmintCheckoutLineItem.tokenWithExecutionParameters — secondary sale
(e.g. memecoin swap) with execution parameters controlling amount, mode,
and slippage. Mutually exclusive with
callData. - CrossmintCheckoutLineItem.product — product-based purchase using a Crossmint product locator.
- CrossmintCheckoutLineItem.raw — forward-compatible escape hatch for line-item shapes not yet modeled by the SDK.
Constructors
-
CrossmintCheckoutLineItem.collection({required String collectionLocator, Map<
String, Object?> ? callData, Map<String, Object?> additionalFields}) -
Creates a collection line item for primary sales.
factory
-
CrossmintCheckoutLineItem.product({required String productLocator, Map<
String, Object?> additionalFields}) -
Creates a product line item identified by a Crossmint
productLocator. Use this for catalog-managed product purchases where the price and SKU are resolved server-side from the locator.factory -
CrossmintCheckoutLineItem.raw({required Map<
String, Object?> value}) -
Forward-compatible escape hatch — passes
valueverbatim to the Crossmint orders API as the line item shape. Use when a new line-item field is not yet modeled by the typed factories above.factory -
CrossmintCheckoutLineItem.token({required String tokenLocator, Map<
String, Object?> ? callData, Map<String, Object?> additionalFields}) -
Creates a token line item for secondary sales with optional
callData.factory -
CrossmintCheckoutLineItem.tokenWithExecutionParameters({required String tokenLocator, required Map<
String, Object?> executionParameters, Map<String, Object?> additionalFields}) -
Creates a token line item with execution parameters for secondary sales
(e.g. memecoins with slippage and amount control).
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
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited