whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? normal(
    1. bool isSelected,
    2. ChipUiProperties chipUiProperties
    )?,
  2. 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? whenOrNull<TResult extends Object?>({
  TResult? Function(bool isSelected, ChipUiProperties chipUiProperties)?
      normal,
  TResult? Function(
          bool isSelected,
          String iconAsset,
          Color borderColor,
          Color backgroundColor,
          Color textColor,
          ChipUiProperties chipUiProperties,
          Color? selectedTextColor,
          Color? selectedBorderColor,
          Color? selectedBackgroundColor)?
      custom,
}) =>
    throw _privateConstructorUsedError;