FortuneItemStyle.disabled constructor

FortuneItemStyle.disabled(
  1. ThemeData theme, {
  2. double opacity = 0.0,
})

Creates an opinionated disabled style based on the current ThemeData.

Implementation

FortuneItemStyle.disabled(ThemeData theme, {double opacity = 0.0})
    : this(
        color: Color.alphaBlend(
          theme.disabledColor.withOpacity(opacity),
          theme.disabledColor,
        ),
        borderWidth: 0.0,
        textStyle: TextStyle(color: theme.colorScheme.onPrimary),
      );