when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult api(
    1. String? message
    ),
  2. required TResult unknown(
    1. String? message
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(String? message) api,
  required TResult Function(String? message) unknown,
}) =>
    throw _privateConstructorUsedError;