maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult listTokens(
    1. List<List<int>> value
    )?,
  2. TResult tokens(
    1. List<int> value
    )?,
  3. TResult listString(
    1. List<String> value
    )?,
  4. TResult string(
    1. String value
    )?,
  5. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(List<List<int>> value)? listTokens,
  TResult Function(List<int> value)? tokens,
  TResult Function(List<String> value)? listString,
  TResult Function(String value)? string,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;