when<TResult extends Object?> method

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

Implementation

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