when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult pyint(),
  2. required TResult pydouble(),
  3. required TResult pytuple(
    1. List<PyTypeAnnotation> elements
    ),
  4. required TResult pylist(
    1. PyTypeAnnotation listType
    ),
  5. required TResult pymap(
    1. PyTypeAnnotation keyType,
    2. PyTypeAnnotation valueType
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function() pyint,
  required TResult Function() pydouble,
  required TResult Function(List<PyTypeAnnotation> elements) pytuple,
  required TResult Function(PyTypeAnnotation listType) pylist,
  required TResult Function(
          PyTypeAnnotation keyType, PyTypeAnnotation valueType)
      pymap,
}) =>
    throw _privateConstructorUsedError;