when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult phone(),
  2. required TResult tablet(),
  3. required TResult desktop(),
})
inherited

Implementation

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