RothkoDisplayStates constructor

const RothkoDisplayStates({
  1. Key? key,
  2. required String heading,
  3. String? displayImage,
  4. bool singleCTA = false,
  5. Color bgColor = RothkoColor.kLightNeutralLighten2,
  6. required String subheading,
  7. required bool isErrorDisplay,
  8. dynamic primaryCallback()?,
  9. DisplaySize size = DisplaySize.SMALL,
  10. required String? primaryBtnText,
  11. bool primaryLoading = false,
  12. dynamic secondaryCallback()?,
  13. double? height,
  14. required String? secondaryBtnText,
  15. bool secondayLoading = false,
  16. Color primaryBtnTextColor = RothkoColor.kPrimaryBase,
  17. Color primaryBtnColor = RothkoColor.kLightNeutralLighten2,
  18. Color? primaryBtnBorderColor = RothkoColor.kLightNeutralBase,
  19. Color secondaryBtnTextColor = RothkoColor.kLightNeutralLighten2,
  20. Color secondaryBtnColor = RothkoColor.kPrimaryBase,
  21. Color? secondaryBorderColor,
})

Implementation

const RothkoDisplayStates({
  Key? key,
  required this.heading,
  this.displayImage,
  this.singleCTA = false,
  this.bgColor = RothkoColor.kLightNeutralLighten2,
  required this.subheading,
  required this.isErrorDisplay,
  this.primaryCallback,
  this.size = DisplaySize.SMALL,
  required this.primaryBtnText,
  this.primaryLoading = false,
  this.secondaryCallback,
  this.height,
  required this.secondaryBtnText,
  this.secondayLoading = false,
  this.primaryBtnTextColor = RothkoColor.kPrimaryBase,
  this.primaryBtnColor = RothkoColor.kLightNeutralLighten2,
  this.primaryBtnBorderColor = RothkoColor.kLightNeutralBase,
  this.secondaryBtnTextColor = RothkoColor.kLightNeutralLighten2,
  this.secondaryBtnColor = RothkoColor.kPrimaryBase,
  this.secondaryBorderColor,
}) : super(key: key);