copyWith method

LoginTemplateStyle copyWith({
  1. EdgeInsets? screenPadding,
  2. double? verticalSpacingBetweenComponents,
  3. double? verticalSpacingBetweenSubComponents,
  4. double? verticalSpacingBetweenGroup,
  5. TextStyle? inlineButtonTextStyle,
  6. TextStyle? buttonTextStyle,
  7. TextStyle? messageTextStyle,
  8. TextStyle? socialButtonTextStyle,
  9. BoxShadow? itemShadow,
  10. TextStyle? textFieldTextStyle,
  11. TextStyle? textFieldHintTextStyle,
  12. TextStyle? textFieldErrorTextStyle,
  13. ButtonStyle? inlineButtonStyle,
  14. Color? primary,
  15. Color? primaryDark,
  16. Color? primaryLight,
  17. Color? buttonOverlay,
  18. ButtonStyle? buttonStyle,
  19. ButtonStyle? socialButtonStyle,
  20. EdgeInsets? textFieldPadding,
})

Create a new instance using copy this instance

Implementation

LoginTemplateStyle copyWith({
  EdgeInsets? screenPadding,
  double? verticalSpacingBetweenComponents,
  double? verticalSpacingBetweenSubComponents,
  double? verticalSpacingBetweenGroup,
  TextStyle? inlineButtonTextStyle,
  TextStyle? buttonTextStyle,
  TextStyle? messageTextStyle,
  TextStyle? socialButtonTextStyle,
  BoxShadow? itemShadow,
  TextStyle? textFieldTextStyle,
  TextStyle? textFieldHintTextStyle,
  TextStyle? textFieldErrorTextStyle,
  ButtonStyle? inlineButtonStyle,
  Color? primary,
  Color? primaryDark,
  Color? primaryLight,
  Color? buttonOverlay,
  ButtonStyle? buttonStyle,
  ButtonStyle? socialButtonStyle,
  EdgeInsets? textFieldPadding,
}) {
  if ((screenPadding == null ||
          identical(screenPadding, this.screenPadding)) &&
      (verticalSpacingBetweenComponents == null ||
          identical(verticalSpacingBetweenComponents,
              this.verticalSpacingBetweenComponents)) &&
      (verticalSpacingBetweenSubComponents == null ||
          identical(verticalSpacingBetweenSubComponents,
              this.verticalSpacingBetweenSubComponents)) &&
      (verticalSpacingBetweenGroup == null ||
          identical(verticalSpacingBetweenGroup,
              this.verticalSpacingBetweenGroup)) &&
      (inlineButtonTextStyle == null ||
          identical(inlineButtonTextStyle, this.inlineButtonTextStyle)) &&
      (buttonTextStyle == null ||
          identical(buttonTextStyle, this.buttonTextStyle)) &&
      (messageTextStyle == null ||
          identical(messageTextStyle, this.messageTextStyle)) &&
      (socialButtonTextStyle == null ||
          identical(socialButtonTextStyle, this.socialButtonTextStyle)) &&
      (itemShadow == null || identical(itemShadow, this.itemShadow)) &&
      (textFieldTextStyle == null ||
          identical(textFieldTextStyle, this.textFieldTextStyle)) &&
      (textFieldHintTextStyle == null ||
          identical(textFieldHintTextStyle, this.textFieldHintTextStyle)) &&
      (textFieldErrorTextStyle == null ||
          identical(textFieldErrorTextStyle, this.textFieldErrorTextStyle)) &&
      (inlineButtonStyle == null ||
          identical(inlineButtonStyle, this.inlineButtonStyle)) &&
      (primary == null || identical(primary, this.primary)) &&
      (primaryDark == null || identical(primaryDark, this.primaryDark)) &&
      (primaryLight == null || identical(primaryLight, this.primaryLight)) &&
      (buttonOverlay == null ||
          identical(buttonOverlay, this.buttonOverlay)) &&
      (buttonStyle == null || identical(buttonStyle, this.buttonStyle)) &&
      (socialButtonStyle == null ||
          identical(socialButtonStyle, this.socialButtonStyle)) &&
      (textFieldPadding == null ||
          identical(textFieldPadding, this.textFieldPadding))) {
    return this;
  }

  return new LoginTemplateStyle(
    screenPadding: screenPadding ?? this.screenPadding,
    verticalSpacingBetweenComponents: verticalSpacingBetweenComponents ??
        this.verticalSpacingBetweenComponents,
    verticalSpacingBetweenSubComponents:
        verticalSpacingBetweenSubComponents ??
            this.verticalSpacingBetweenSubComponents,
    verticalSpacingBetweenGroup:
        verticalSpacingBetweenGroup ?? this.verticalSpacingBetweenGroup,
    inlineButtonTextStyle:
        inlineButtonTextStyle ?? this.inlineButtonTextStyle,
    buttonTextStyle: buttonTextStyle ?? this.buttonTextStyle,
    messageTextStyle: messageTextStyle ?? this.messageTextStyle,
    socialButtonTextStyle:
        socialButtonTextStyle ?? this.socialButtonTextStyle,
    itemShadow: itemShadow ?? this.itemShadow,
    textFieldTextStyle: textFieldTextStyle ?? this.textFieldTextStyle,
    textFieldHintTextStyle:
        textFieldHintTextStyle ?? this.textFieldHintTextStyle,
    textFieldErrorTextStyle:
        textFieldErrorTextStyle ?? this.textFieldErrorTextStyle,
    inlineButtonStyle: inlineButtonStyle ?? this.inlineButtonStyle,
    primary: primary ?? this.primary,
    primaryDark: primaryDark ?? this.primaryDark,
    primaryLight: primaryLight ?? this.primaryLight,
    buttonOverlay: buttonOverlay ?? this.buttonOverlay,
    buttonStyle: buttonStyle ?? this.buttonStyle,
    socialButtonStyle: socialButtonStyle ?? this.socialButtonStyle,
    textFieldPadding: textFieldPadding ?? this.textFieldPadding,
  );
}