when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult normal(
    1. bool isSelected,
    2. ChipUiProperties chipUiProperties
    ),
  2. required TResult custom(
    1. bool isSelected,
    2. String iconAsset,
    3. Color borderColor,
    4. Color backgroundColor,
    5. Color textColor,
    6. ChipUiProperties chipUiProperties,
    7. Color? selectedTextColor,
    8. Color? selectedBorderColor,
    9. Color? selectedBackgroundColor,
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(
          bool isSelected, ChipUiProperties chipUiProperties)
      normal,
  required TResult Function(
          bool isSelected,
          String iconAsset,
          Color borderColor,
          Color backgroundColor,
          Color textColor,
          ChipUiProperties chipUiProperties,
          Color? selectedTextColor,
          Color? selectedBorderColor,
          Color? selectedBackgroundColor)
      custom,
}) =>
    throw _privateConstructorUsedError;