when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult knownValue(
    1. KnownCreateSessionStatus data
    ),
  2. required TResult unknownValue(
    1. String data
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(KnownCreateSessionStatus data) knownValue,
  required TResult Function(String data) unknownValue,
}) =>
    throw _privateConstructorUsedError;