CrossmintCheckoutLineItem class sealed

A single asset to purchase in a checkout order.

Use the named factory constructors to create line items:

Implementers

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 value verbatim 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