FlexiChipStyle.outlined constructor

FlexiChipStyle.outlined({
  1. Color? color,
  2. double? height,
  3. EdgeInsetsGeometry? margin,
  4. EdgeInsetsGeometry? padding,
  5. Clip? clipBehavior,
  6. Color? overlayColor,
  7. Color? shadowColor,
  8. double? elevation,
  9. TextStyle? foregroundStyle,
  10. double? foregroundOpacity,
  11. int? foregroundAlpha,
  12. double? foregroundSpacing,
  13. Color? backgroundColor,
  14. double? backgroundOpacity = 0,
  15. int? backgroundAlpha,
  16. double? borderOpacity = 1,
  17. int? borderAlpha,
  18. double? borderWidth = 1,
  19. BorderRadiusGeometry? borderRadius,
  20. BorderStyle? borderStyle = BorderStyle.solid,
  21. Size? avatarSize,
  22. TextStyle? avatarForegroundStyle,
  23. Color? avatarForegroundColor,
  24. BorderRadiusGeometry? avatarBorderRadius,
  25. Color? checkmarkColor,
  26. double? checkmarkSize,
  27. double? checkmarkWeight,
  28. FlexiChipCheckmarkStyle? checkmarkStyle,
  29. Color? iconColor,
  30. double? iconOpacity,
  31. double? iconSize,
  32. FlexiChipStyle? selectedStyle,
  33. FlexiChipStyle? disabledStyle = const FlexiChipStyle(foregroundAlpha: FlexiChipStyle.disabledForegroundAlpha, borderAlpha: FlexiChipStyle.disabledBorderAlpha),
  34. FlexiChipStyle? hoveredStyle,
  35. FlexiChipStyle? focusedStyle,
  36. FlexiChipStyle? pressedStyle,
})

Create chip's style with default value for outlined style.

The selected is style to be merged, when events includes FlexiChipEvent.selected.

The disabled style to be merged, when events includes FlexiChipEvent.disabled.

The hovered style to be merged, when events includes FlexiChipEvent.hovered.

The focused style to be merged, when events includes FlexiChipEvent.focused.

The pressed style to be merged, when events includes FlexiChipEvent.pressed.

Implementation

factory FlexiChipStyle.outlined({
  Color? color,
  double? height,
  EdgeInsetsGeometry? margin,
  EdgeInsetsGeometry? padding,
  Clip? clipBehavior,
  Color? overlayColor,
  Color? shadowColor,
  double? elevation,
  TextStyle? foregroundStyle,
  double? foregroundOpacity,
  int? foregroundAlpha,
  double? foregroundSpacing,
  Color? backgroundColor,
  double? backgroundOpacity = 0,
  int? backgroundAlpha,
  double? borderOpacity = 1,
  int? borderAlpha,
  double? borderWidth = 1,
  BorderRadiusGeometry? borderRadius,
  BorderStyle? borderStyle = BorderStyle.solid,
  Size? avatarSize,
  TextStyle? avatarForegroundStyle,
  Color? avatarForegroundColor,
  BorderRadiusGeometry? avatarBorderRadius,
  Color? checkmarkColor,
  double? checkmarkSize,
  double? checkmarkWeight,
  FlexiChipCheckmarkStyle? checkmarkStyle,
  Color? iconColor,
  double? iconOpacity,
  double? iconSize,
  FlexiChipStyle? selectedStyle,
  FlexiChipStyle? disabledStyle = const FlexiChipStyle(
    foregroundAlpha: FlexiChipStyle.disabledForegroundAlpha,
    borderAlpha: FlexiChipStyle.disabledBorderAlpha,
  ),
  FlexiChipStyle? hoveredStyle,
  FlexiChipStyle? focusedStyle,
  FlexiChipStyle? pressedStyle,
}) {
  return FlexiChipStyle.when(
    enabled: FlexiChipStyle(
      borderColor: color,
      foregroundColor: color,
      avatarBackgroundColor: color,
      height: height,
      margin: margin,
      padding: padding,
      clipBehavior: clipBehavior,
      overlayColor: overlayColor,
      shadowColor: shadowColor,
      elevation: elevation,
      foregroundStyle: foregroundStyle,
      foregroundOpacity: foregroundOpacity,
      foregroundAlpha: foregroundAlpha,
      foregroundSpacing: foregroundSpacing,
      backgroundColor: backgroundColor,
      backgroundOpacity: backgroundOpacity,
      backgroundAlpha: backgroundAlpha,
      borderOpacity: borderOpacity,
      borderAlpha: borderAlpha,
      borderWidth: borderWidth,
      borderRadius: borderRadius,
      borderStyle: borderStyle,
      avatarSize: avatarSize,
      avatarForegroundStyle: avatarForegroundStyle,
      avatarForegroundColor: avatarForegroundColor,
      avatarBorderRadius: avatarBorderRadius,
      checkmarkColor: checkmarkColor,
      checkmarkSize: checkmarkSize,
      checkmarkWeight: checkmarkWeight,
      checkmarkStyle: checkmarkStyle,
      iconColor: iconColor,
      iconOpacity: iconOpacity,
      iconSize: iconSize,
    ),
    selected: selectedStyle,
    disabled: disabledStyle,
    hovered: hoveredStyle,
    focused: focusedStyle,
    pressed: pressedStyle,
  );
}