whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? singleButton(
    1. String label,
    2. void onPressed()?
    )?,
  2. TResult? multiButton(
    1. String leftButtonLabel,
    2. void onPressedLeftButton()?,
    3. String rightButtonLabel,
    4. void onPressedRightButton()?,
    )?,
  3. TResult? verticalMultiButton(
    1. String leftButtonLabel,
    2. void onPressedLeftButton()?,
    3. String rightButtonLabel,
    4. void onPressedRightButton()?,
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(String label, void Function()? onPressed)? singleButton,
  TResult? Function(
          String leftButtonLabel,
          void Function()? onPressedLeftButton,
          String rightButtonLabel,
          void Function()? onPressedRightButton)?
      multiButton,
  TResult? Function(
          String topButtonLabel,
          void Function()? onPressedTopButton,
          String bottomButtonLabel,
          void Function()? onPressedBottomButton)?
      verticalMultiButton,
}) =>
    throw _privateConstructorUsedError;