secondary method

T secondary(
  1. BuildContext context
)

Use the secondary theme variant.

Implementation

T secondary(BuildContext context) {
  final decorationThemeExtension = context.resolveThemeExtension<MyoroDecorationThemeExtension>();
  final secondaryIdleBackgroundColor = decorationThemeExtension.secondaryIdleBackgroundColor;
  final secondaryHoverBackgroundColor = decorationThemeExtension.secondaryHoverBackgroundColor;
  final secondaryTapBackgroundColor = decorationThemeExtension.secondaryTapBackgroundColor;
  final secondaryContentColor = decorationThemeExtension.secondaryContentColor;
  return copyWith(
        backgroundIdleColor: secondaryIdleBackgroundColor,
        backgroundIdleColorProvided: secondaryIdleBackgroundColor != null,
        backgroundHoverColor: secondaryHoverBackgroundColor,
        backgroundHoverColorProvided: secondaryHoverBackgroundColor != null,
        backgroundTapColor: secondaryTapBackgroundColor,
        backgroundTapColorProvided: secondaryTapBackgroundColor != null,
        contentIdleColor: secondaryContentColor,
        contentIdleColorProvided: secondaryContentColor != null,
        contentHoverColor: secondaryContentColor,
        contentHoverColorProvided: secondaryContentColor != null,
        contentTapColor: secondaryContentColor,
        contentTapColorProvided: secondaryContentColor != null,
      )
      as T;
}