whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? portrait()?,
  2. TResult? landscape()?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function()? portrait,
  TResult? Function()? landscape,
}) =>
    throw _privateConstructorUsedError;