PyTypeAnnotation class Null safety
Annotation for a dart function to automatically create the python bindings
Work in progress
Constructors
- PyTypeAnnotation.pydouble()
-
constfactory
- PyTypeAnnotation.pyint()
-
constfactory
- PyTypeAnnotation.pylist(PyTypeAnnotation listType)
-
constfactory
- PyTypeAnnotation.pymap(PyTypeAnnotation keyType, PyTypeAnnotation valueType)
-
constfactory
-
PyTypeAnnotation.pytuple(List<
PyTypeAnnotation> elements) -
constfactory
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
map<
TResult extends Object?> ({required TResult pyint(PyInt value), required TResult pydouble(PyDouble value), required TResult pytuple(PyTuple value), required TResult pylist(PyList value), required TResult pymap(PyMap value)}) → TResult -
@optionalTypeArgs, inherited
-
maybeMap<
TResult extends Object?> ({TResult pyint(PyInt value), TResult pydouble(PyDouble value), TResult pytuple(PyTuple value), TResult pylist(PyList value), TResult pymap(PyMap value), required TResult orElse()}) → TResult -
@optionalTypeArgs, inherited
-
maybeWhen<
TResult extends Object?> ({TResult pyint(), TResult pydouble(), TResult pytuple(List< PyTypeAnnotation> elements), TResult pylist(PyTypeAnnotation listType), TResult pymap(PyTypeAnnotation keyType, PyTypeAnnotation valueType), required TResult orElse()}) → TResult -
@optionalTypeArgs, inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
-
when<
TResult extends Object?> ({required TResult pyint(), required TResult pydouble(), required TResult pytuple(List< PyTypeAnnotation> elements), required TResult pylist(PyTypeAnnotation listType), required TResult pymap(PyTypeAnnotation keyType, PyTypeAnnotation valueType)}) → TResult -
@optionalTypeArgs, inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited