maybeWhen<TResult extends Object?> method

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

Implementation

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