RothkoDisplayStates constructor
const
RothkoDisplayStates({
- Key? key,
- required String heading,
- String? displayImage,
- bool singleCTA = false,
- Color bgColor = RothkoColor.kLightNeutralLighten2,
- required String subheading,
- required bool isErrorDisplay,
- dynamic primaryCallback()?,
- DisplaySize size = DisplaySize.SMALL,
- required String? primaryBtnText,
- bool primaryLoading = false,
- dynamic secondaryCallback()?,
- double? height,
- required String? secondaryBtnText,
- bool secondayLoading = false,
- Color primaryBtnTextColor = RothkoColor.kPrimaryBase,
- Color primaryBtnColor = RothkoColor.kLightNeutralLighten2,
- Color? primaryBtnBorderColor = RothkoColor.kLightNeutralBase,
- Color secondaryBtnTextColor = RothkoColor.kLightNeutralLighten2,
- Color secondaryBtnColor = RothkoColor.kPrimaryBase,
- 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);