when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult invalidApiKey(),
  2. required TResult noInternetConnection(),
  3. required TResult notFound(),
  4. required TResult unknown(),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function() invalidApiKey,
  required TResult Function() noInternetConnection,
  required TResult Function() notFound,
  required TResult Function() unknown,
}) =>
    throw _privateConstructorUsedError;