SmartCheckoutConfig constructor

const SmartCheckoutConfig({
  1. required SmartCheckoutEnvironment environment,
  2. String? sessionCode,
  3. String? partnerKey,
  4. Uri? deepLink,
  5. double? initialHeightFraction,
  6. 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;