Terms constructor

Terms(
  1. String src, {
  2. Key? key,
  3. dynamic buttonColor,
  4. dynamic textColor,
  5. dynamic backgroundColor,
  6. dynamic fontFamily,
  7. dynamic fontPackage,
})

Builds the Terms screen with the src text.

TikiSdk.theme is used for default styling.

Implementation

Terms(this.src,
    {super.key,
    buttonColor,
    textColor,
    backgroundColor,
    fontFamily,
    fontPackage}) {
  this.buttonColor = buttonColor ?? TikiSdk.instance.activeTheme.accentColor;
  this.textColor = textColor ?? TikiSdk.instance.activeTheme.primaryTextColor;
  this.backgroundColor =
      backgroundColor ?? TikiSdk.instance.activeTheme.primaryBackgroundColor;
  this.fontFamily = fontFamily ?? TikiSdk.instance.activeTheme.fontFamily;
  this.fontPackage = fontPackage ?? TikiSdk.instance.activeTheme.fontPackage;
}