when<TResult extends Object?> method

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

Implementation

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