AppNewsStyle.fromHex constructor

AppNewsStyle.fromHex({
  1. String? titleBackground,
  2. String? titleTextColor,
  3. String? titleIndicatorColor,
  4. String? messageBackground,
  5. String? messageTextColor,
  6. String? buttonBackground,
  7. String? buttonTextColor,
  8. String? contentBackgroundColor,
})

Implementation

AppNewsStyle.fromHex({
  String? titleBackground,
  String? titleTextColor,
  String? titleIndicatorColor,
  String? messageBackground,
  String? messageTextColor,
  String? buttonBackground,
  String? buttonTextColor,
  String? contentBackgroundColor,
}) : titleBackground = _parseColor(titleBackground),
     titleTextColor = _parseColor(titleTextColor),
     titleIndicatorColor = _parseColor(titleIndicatorColor),
     messageBackground = _parseColor(messageBackground),
     messageTextColor = _parseColor(messageTextColor),
     buttonBackground = _parseColor(buttonBackground),
     buttonTextColor = _parseColor(buttonTextColor),
     contentBackgroundColor = _parseColor(contentBackgroundColor);