SmartCheckoutConfig constructor
const
SmartCheckoutConfig({
- required SmartCheckoutEnvironment environment,
- String? sessionCode,
- String? partnerKey,
- Uri? deepLink,
- double? initialHeightFraction,
- SmartCheckoutStyle? style,
Implementation
const SmartCheckoutConfig({
required this.environment,
this.sessionCode,
this.partnerKey,
this.deepLink,
double? initialHeightFraction,
SmartCheckoutStyle? style,
}) : assert(
initialHeightFraction == null ||
(initialHeightFraction >= 0.0 && initialHeightFraction <= 1.0),
'initialHeightFraction must be between 0.0 and 1.0 when provided',
),
initialHeightFraction = initialHeightFraction ?? 0.6,
style = style ?? SmartCheckoutStyle.rounded;