whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<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
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
    throw _privateConstructorUsedError;